]> mj.ucw.cz Git - suidgw.git/commitdiff
make install
authorMartin Mares <mj@ucw.cz>
Tue, 12 Feb 2013 12:13:56 +0000 (13:13 +0100)
committerMartin Mares <mj@ucw.cz>
Tue, 12 Feb 2013 12:13:56 +0000 (13:13 +0100)
Makefile

index 9d2a584419d3a16d425960d3888eeef4117794db..d2f59450505d98bb6d205f89c079497f32677cd7 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,5 @@
 CFLAGS=-O2 -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes -Wundef -Wredundant-decls -std=gnu99
+DESTDIR=/
 
 all: suidgw
 
@@ -10,5 +11,8 @@ test-setup:
        chown testuser.nogroup scripts/quork
        chmod ug+s scripts/quork
 
+install: all
+       install -o root -g root -m 4755 -s suidgw $(DESTDIR)/usr/bin/
+
 clean:
        rm -f suidgw *.o