]> mj.ucw.cz Git - xsv.git/blob - Makefile
a63f72c25adc368657f624404db46b1f4dba38d4
[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 clean:
19         rm -f `find . -name "*~" -or -name "*.[oa]" -or -name "\#*\#" -or -name TAGS -or -name core -or -name .depend -or -name .#*`
20         rm -f xsv xsv.1
21         rm -rf tmp
22
23 release:
24         git tag v$(VERSION)
25         git push --tags
26         git archive --format=tar --prefix=xsv-$(VERSION)/ HEAD | gzip >$(ARCHIVE)
27         scp $(ARCHIVE) atrey:~ftp/pub/local/mj/linux/
28         ssh jw "cd www && bin/release-prog xsv $(VERSION)"
29         mv $(ARCHIVE) ~/archives/mj/