2 PACKAGE=bouncer-$(VERSION)
4 PKG_CFLAGS := $(shell pkg-config --cflags libucw libipset)
5 PKG_LIBS := $(shell pkg-config --libs libucw libipset)
7 CFLAGS=-O2 -Wall -Wextra -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes -Wundef -Wredundant-decls -Wno-missing-field-initializers -std=gnu99 $(PKG_CFLAGS)
15 rm -f `find . -name "*~" -or -name "*.[oa]" -or -name "\#*\#" -or -name TAGS -or -name core -or -name .depend -or -name .#*`
17 rm -f bouncer-*.tar.gz bouncer-*.tar.sig
20 install -d $(DESTDIR)/usr/sbin $(DESTDIR)/etc
21 install -m755 bouncer $(DESTDIR)/usr/sbin/
22 install -m644 config $(DESTDIR)/etc/bouncer
25 git tag --sign v$(VERSION)
27 git archive --format=tar --prefix=$(PACKAGE)/ HEAD >$(PACKAGE).tar
28 gpg --armor --detach-sign -o $(PACKAGE).tar.sig $(PACKAGE).tar
30 scp $(PACKAGE).tar.gz $(PACKAGE).tar.sig atrey:~ftp/pub/local/mj/linux/
31 scp README jw:web/sw/bouncer/
32 ssh jw "cd web && bin/release-prog bouncer $(VERSION)"
33 mv $(PACKAGE).tar.gz $(PACKAGE).tar.sig ~/archives/mj/