]> mj.ucw.cz Git - suidgw.git/blob - Makefile
Makefile: clean is also a phony target
[suidgw.git] / Makefile
1 VERSION=1.3
2 CFLAGS=-O2 -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes -Wundef -Wredundant-decls -std=gnu99
3 DESTDIR=/
4
5 all: suidgw
6
7 suidgw: suidgw.c
8
9 test-setup:
10         chown root.root suidgw
11         chmod u+s suidgw
12         chown testuser.nogroup tests/scripts/*
13         chmod ug+s tests/scripts/*
14
15 install: all
16         install -o root -g root -m 4755 -s suidgw $(DESTDIR)/usr/bin/
17
18 clean:
19         rm -f suidgw *.o
20
21 release:
22         git tag v$(VERSION)
23         git push --tags
24         git archive --format=tar --prefix=suidgw-$(VERSION)/ HEAD | gzip >suidgw-$(VERSION).tar.gz
25         rsync suidgw-$(VERSION).tar.gz jw:/home/ftp/pub/mj/linux/
26         ssh jw 'cd web && bin/release-prog suidgw $(VERSION)'
27
28 .PHONY: all test-setup install release clean