+VERSION=1.3
CFLAGS=-O2 -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes -Wundef -Wredundant-decls -std=gnu99
+DESTDIR=/
all: suidgw
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