VERSION=1.0 ARCHIVE=xsv-$(VERSION).tar.gz PCRE_CFLAGS:=$(shell pcre-config --cflags) PCRE_LIBS:=$(shell pcre-config --libs) CFLAGS=-O2 -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes -Wundef -Wredundant-decls -std=gnu99 $(PCRE_CFLAGS) -DVERSION='"$(VERSION)"' LDLIBS=$(PCRE_LIBS) all: xsv xsv.1 tests: xsv ./run-tests xsv.1: xsv.1.txt a2x -f manpage -a xsvversion=$(VERSION) $< xsv.1.html: xsv.1.txt a2x -f xhtml -a xsvversion=$(VERSION) $< clean: rm -f `find . -name "*~" -or -name "*.[oa]" -or -name "\#*\#" -or -name TAGS -or -name core -or -name .depend -or -name .#*` rm -f xsv xsv.1 xsv.1.* rm -rf tmp release: xsv.1.html git tag v$(VERSION) git push --tags git archive --format=tar --prefix=xsv-$(VERSION)/ HEAD | gzip >$(ARCHIVE) scp $(ARCHIVE) atrey:~ftp/pub/local/mj/linux/ rsync xsv.1.html jw:www/sw/xsv/ ssh jw "cd www && bin/release-prog xsv $(VERSION)" mv $(ARCHIVE) ~/archives/mj/