diff Makefile @ 10:fe1a21ab4f69

add a man page
author Guido Berhoerster <guido@berhoerster.name>
date Tue, 11 Oct 2011 17:07:49 +0200
parents 0e50d3652326
children dca97330d81e
line wrap: on
line diff
--- a/Makefile	Tue Oct 11 17:07:49 2011 +0200
+++ b/Makefile	Tue Oct 11 17:07:49 2011 +0200
@@ -10,6 +10,7 @@
 prefix ?=	/usr/local
 bindir ?=	$(prefix)/bin
 datadir ?=	$(prefix)/share
+mandir ?=	$(datadir)/man
 localedir ?=	$(datadir)/locale
 sysconfdir ?=	/etc
 xdgautostartdir ?=	$(sysconfdir)/xdg/autostart
@@ -69,6 +70,8 @@
 		$(INSTALL.data) po/$${lang}.mo \
 			$(DESTDIR)$(LOCALEDIR)/$${lang}/$(PACKAGE).mo; \
 	done
+	$(INSTALL.data) $(PACKAGE).1 \
+			$(DESTDIR)$(mandir)/man1/$(PACKAGE).1
 
 clean:
 	rm -f $(PACKAGE) $(OBJS) $(POTFILE) $(MOFILES) $(AUTOSTART_FILE)