]> mj.ucw.cz Git - xsv.git/blobdiff - Makefile
Released as 1.0.1
[xsv.git] / Makefile
index 9a4f0145d2703e007ca4f21ee1dbbec7cf8eb4fb..c4f6ff793bd6d5db27612029f64f2c69022cfdf2 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-VERSION=1.0
+VERSION=1.0.1
 ARCHIVE=xsv-$(VERSION).tar.gz
 
 PCRE_CFLAGS:=$(shell pcre-config --cflags)
@@ -7,6 +7,10 @@ PCRE_LIBS:=$(shell pcre-config --libs)
 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
@@ -20,14 +24,20 @@ xsv.1.html: xsv.1.txt
 
 clean:
        rm -f `find . -name "*~" -or -name "*.[oa]" -or -name "\#*\#" -or -name TAGS -or -name core -or -name .depend -or -name .#*`
-       rm -f xsv xsv.1 xsv.1.html
+       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
        git archive --format=tar --prefix=xsv-$(VERSION)/ HEAD | gzip >$(ARCHIVE)
        scp $(ARCHIVE) atrey:~ftp/pub/local/mj/linux/
-       rsync xsv.1.html jw:www/sw/xsv/
+       rsync xsv.1.html docbook-xsl.css jw:www/sw/xsv/
        ssh jw "cd www && bin/release-prog xsv $(VERSION)"
        mv $(ARCHIVE) ~/archives/mj/