2 ARCHIVE=xsv-$(VERSION).tar.gz
4 PCRE_CFLAGS:=$(shell pcre-config --cflags)
5 PCRE_LIBS:=$(shell pcre-config --libs)
7 CFLAGS=-O2 -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes -Wundef -Wredundant-decls -std=gnu99 $(PCRE_CFLAGS) -DVERSION='"$(VERSION)"'
12 MANDIR=$(PREFIX)/share/man/man1
20 a2x -f manpage -a xsvversion=$(VERSION) $<
23 a2x -f xhtml -a xsvversion=$(VERSION) $<
26 rm -f `find . -name "*~" -or -name "*.[oa]" -or -name "\#*\#" -or -name TAGS -or -name core -or -name .depend -or -name .#*`
27 rm -f xsv xsv.1 xsv.1.html docbook-xsl.css
31 install -d -m 755 $(BINDIR) $(MANDIR)
32 install -m 755 xsv $(BINDIR)/
33 install -m 644 xsv.1 $(MANDIR)/
35 # Release target for private use by the maintainer
39 git archive --format=tar --prefix=xsv-$(VERSION)/ HEAD | gzip >$(ARCHIVE)
40 scp $(ARCHIVE) atrey:~ftp/pub/local/mj/linux/
41 rsync xsv.1.html docbook-xsl.css jw:web/sw/xsv/
42 ssh jw "cd web && bin/release-prog xsv $(VERSION)"
43 mv $(ARCHIVE) ~/archives/sw/xsv/