From 0b33c94f4750879a3f2a0a8156eeaf693e4a2d90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Mangano?= Date: Tue, 1 Jan 2013 22:33:07 +0100 Subject: [PATCH] Makefile: install, doc --- Makefile | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 0a889a1..a682072 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,5 @@ -CC=clang +DESTDIR=/usr/local +MANDEST=share/man CFLAGS=-Wall LDFLAGS=-logg @@ -6,5 +7,17 @@ all: opustags opustags: opustags.c +man: opustags.1 + gzip opustags.1.gz + +install: opustags man + mkdir -p $(DESTDIR)/bin $(DESTDIR)/$(MANDEST)/man1 + install -m 755 opustags $(DESTDIR)/bin/ + install -m 644 opustags.1.gz $(DESTDIR)/$(MANDEST)/man1/ + +uninstall: + rm -f $(DESTDIR)/bin/opustags + rm -f $(DESTDIR)/$(MANDEST)/man1/opustags.1.gz + clean: - rm -f opustags + rm -f opustags opustags.1.gz