From: Martin Mares Date: Mon, 9 Dec 2013 20:24:09 +0000 (+0100) Subject: Makefile: Added "install" target X-Git-Tag: v1.0.1~1 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=cc0fe96bb0eca34773adb0e1654cbd6c24550113;p=xsv.git Makefile: Added "install" target --- diff --git a/Makefile b/Makefile index 6a31bb6..1dd7c42 100644 --- a/Makefile +++ b/Makefile @@ -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 @@ -23,6 +27,12 @@ clean: 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