]> mj.ucw.cz Git - nwho.git/blobdiff - Makefile
Make the systemd service be ordered after autofs.service, so that it is ordered befor...
[nwho.git] / Makefile
index bafcc26d2515b9efa0ad785456e76d7db800ab19..6da5aeef5a3c71c2ebb995e84710a3b6e7a11d28 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,10 @@
 # Makefile for the nwho toolkit
 
 # Makefile for the nwho toolkit
 
-VERSION=1.12
-CFLAGS=-O2 -Wall -Wno-parentheses -DVERSION=$(VERSION)
+CFLAGS=-O2 -Wall -Wextra -Wno-parentheses -DVERSION=$(VERSION) -std=gnu99
 LDFLAGS=-s
 ROOT=/
 LDFLAGS=-s
 ROOT=/
-REL=nwho-$(VERSION)
+VERSION=1.15
+ARCHIVE=nwho-$(VERSION).tar.gz
 
 all: nwhod nwho
 
 
 all: nwhod nwho
 
@@ -23,11 +23,12 @@ install:
        install -s -m 755 nwho $(ROOT)/usr/bin
        ln -sf nwho $(ROOT)/usr/bin/nuptime
        install -s -m 755 nwhod $(ROOT)/usr/sbin
        install -s -m 755 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
+       install -d -m 755 $(ROOT)/var/state/nwho
 
 
-dist: clean
-       mkdir -p ~/tmp
-       cp -a . ~/tmp/$(REL)
-       rm -rf `find ~/tmp/$(REL) -name CVS -o -name tmp`
-       cd ~/tmp ; tar czvvf $(REL).tar.gz $(REL)
-       rm -rf ~/tmp/$(REL)
+release:
+       git tag v$(VERSION)
+       git push --tags
+       git archive --format=tar --prefix=nwho-$(VERSION)/ HEAD | gzip >$(ARCHIVE)
+       scp $(ARCHIVE) atrey:~ftp/pub/local/mj/linux/
+       ssh jw "cd www && bin/release-prog nwho $(VERSION)"
+       mv $(ARCHIVE) ~/archives/sw/nwho/