]> mj.ucw.cz Git - xsv.git/blob - Makefile
Added version number everywhere
[xsv.git] / Makefile
1 VERSION=1.0
2
3 PCRE_CFLAGS:=$(shell pcre-config --cflags)
4 PCRE_LIBS:=$(shell pcre-config --libs)
5
6 CFLAGS=-O2 -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes -Wundef -Wredundant-decls -std=gnu99 $(PCRE_CFLAGS) -DVERSION='"$(VERSION)"'
7 LDLIBS=$(PCRE_LIBS)
8
9 all: xsv xsv.1
10
11 tests: xsv
12         ./run-tests
13
14 xsv.1: xsv.1.txt
15         a2x -f manpage -a xsvversion=$(VERSION) $<
16
17 clean:
18         rm -f `find . -name "*~" -or -name "*.[oa]" -or -name "\#*\#" -or -name TAGS -or -name core -or -name .depend -or -name .#*`
19         rm -f xsv xsv.1
20         rm -rf tmp