]> mj.ucw.cz Git - nwho.git/commitdiff
Added distribution rules.
authorMartin Mares <mj@ucw.cz>
Sun, 28 Mar 1999 20:57:39 +0000 (20:57 +0000)
committerMartin Mares <mj@ucw.cz>
Sun, 28 Mar 1999 20:57:39 +0000 (20:57 +0000)
Makefile

index d3f0f6bf970200554ff79c65a3aee240775c485b..efd919627684cc8129c7d4f04892a180c63f658d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -3,6 +3,7 @@
 CFLAGS=-O2 -m486 -fomit-frame-pointer -Wall -Wno-parentheses -malign-loops=0 -malign-jumps=0 -malign-functions=2
 LDFLAGS=-s
 ROOT=/
+REL=ywho-1.9
 
 all: ywho nwhod nwho
 
@@ -20,6 +21,7 @@ nwho.o: nwho.c net.h
 
 clean:
        rm -f *.o ywho nwhod nwho *~
+       rm -rf dist
 
 install:
        strip ywho
@@ -28,3 +30,9 @@ install:
        ln -sf nwho $(ROOT)/usr/bin/nuptime
        install -s -m 755 nwhod $(ROOT)/usr/sbin
        install -d -m 755 $(ROOT)/var/spool/nwho
+
+dist: clean
+       mkdir dist
+       cp -a . dist/$(REL)
+       rm -rf `find dist/$(REL) -name CVS -o -name tmp` dist/$(REL)/dist
+       cd dist ; tar czvvf /tmp/$(REL).tar.gz $(REL)