From cc0fe96bb0eca34773adb0e1654cbd6c24550113 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Mon, 9 Dec 2013 21:24:09 +0100 Subject: [PATCH] Makefile: Added "install" target --- Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 -- 2.39.2