CFLAGS=-O2 -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes -Wundef -Wredundant-decls -std=gnu99 $(PCRE_CFLAGS) -DVERSION='"$(VERSION)"'
LDLIBS=$(PCRE_LIBS)
+PREFIX=/usr/local
+BINDIR=$(PREFIX)/bin
+MANDIR=$(PREFIX)/share/man/man1
+
all: xsv xsv.1
tests: xsv
rm -f xsv xsv.1 xsv.1.html docbook-xsl.css
rm -rf tmp
+install: all
+ install -d -m 755 $(BINDIR) $(MANDIR)
+ install -m 755 xsv $(BINDIR)/
+ install -m 644 xsv.1 $(MANDIR)/
+
+# Release target for private use by the maintainer
release: xsv.1.html
git tag v$(VERSION)
git push --tags