]> mj.ucw.cz Git - xsv.git/blob - Makefile
Makefile: Delete generated docbook CSS
[xsv.git] / Makefile
1 VERSION=1.0
2 ARCHIVE=xsv-$(VERSION).tar.gz
3
4 PCRE_CFLAGS:=$(shell pcre-config --cflags)
5 PCRE_LIBS:=$(shell pcre-config --libs)
6
7 CFLAGS=-O2 -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes -Wundef -Wredundant-decls -std=gnu99 $(PCRE_CFLAGS) -DVERSION='"$(VERSION)"'
8 LDLIBS=$(PCRE_LIBS)
9
10 all: xsv xsv.1
11
12 tests: xsv
13         ./run-tests
14
15 xsv.1: xsv.1.txt
16         a2x -f manpage -a xsvversion=$(VERSION) $<
17
18 xsv.1.html: xsv.1.txt
19         a2x -f xhtml -a xsvversion=$(VERSION) $<
20
21 clean:
22         rm -f `find . -name "*~" -or -name "*.[oa]" -or -name "\#*\#" -or -name TAGS -or -name core -or -name .depend -or -name .#*`
23         rm -f xsv xsv.1 xsv.1.html docbook-xsl.css
24         rm -rf tmp
25
26 release: xsv.1.html
27         git tag v$(VERSION)
28         git push --tags
29         git archive --format=tar --prefix=xsv-$(VERSION)/ HEAD | gzip >$(ARCHIVE)
30         scp $(ARCHIVE) atrey:~ftp/pub/local/mj/linux/
31         rsync xsv.1.html jw:www/sw/xsv/
32         ssh jw "cd www && bin/release-prog xsv $(VERSION)"
33         mv $(ARCHIVE) ~/archives/mj/