]> mj.ucw.cz Git - ywho.git/blobdiff - Makefile
Debianized...
[ywho.git] / Makefile
index 1cffb0e46cf89b4fe3ee4e74a49f3198c22fe4e9..d3f0f6bf970200554ff79c65a3aee240775c485b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2,6 +2,7 @@
 
 CFLAGS=-O2 -m486 -fomit-frame-pointer -Wall -Wno-parentheses -malign-loops=0 -malign-jumps=0 -malign-functions=2
 LDFLAGS=-s
+ROOT=/
 
 all: ywho nwhod nwho
 
@@ -22,7 +23,8 @@ clean:
 
 install:
        strip ywho
-       install -s -m 755 ywho nwho /usr/bin
-       ln -sf nwho /usr/bin/nuptime
-       install -s -m 755 nwhod /usr/sbin
-       install -d -m 755 /var/spool/nwho
+       mkdir -p $(ROOT)/usr/bin $(ROOT)/usr/sbin
+       install -s -m 755 ywho nwho $(ROOT)/usr/bin
+       ln -sf nwho $(ROOT)/usr/bin/nuptime
+       install -s -m 755 nwhod $(ROOT)/usr/sbin
+       install -d -m 755 $(ROOT)/var/spool/nwho