]> mj.ucw.cz Git - suidgw.git/blobdiff - Makefile
Makefile: clean is also a phony target
[suidgw.git] / Makefile
index d2f59450505d98bb6d205f89c079497f32677cd7..c17d4151599976130b9a4d95de9b945b44f7a6c2 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,4 @@
+VERSION=1.3
 CFLAGS=-O2 -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes -Wundef -Wredundant-decls -std=gnu99
 DESTDIR=/
 
@@ -8,11 +9,20 @@ suidgw: suidgw.c
 test-setup:
        chown root.root suidgw
        chmod u+s suidgw
-       chown testuser.nogroup scripts/quork
-       chmod ug+s scripts/quork
+       chown testuser.nogroup tests/scripts/*
+       chmod ug+s tests/scripts/*
 
 install: all
        install -o root -g root -m 4755 -s suidgw $(DESTDIR)/usr/bin/
 
 clean:
        rm -f suidgw *.o
+
+release:
+       git tag v$(VERSION)
+       git push --tags
+       git archive --format=tar --prefix=suidgw-$(VERSION)/ HEAD | gzip >suidgw-$(VERSION).tar.gz
+       rsync suidgw-$(VERSION).tar.gz jw:/home/ftp/pub/mj/linux/
+       ssh jw 'cd web && bin/release-prog suidgw $(VERSION)'
+
+.PHONY: all test-setup install release clean