comparison 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
comparison
equal deleted inserted replaced
9:0e50d3652326 10:fe1a21ab4f69
8 8
9 DESTDIR ?= 9 DESTDIR ?=
10 prefix ?= /usr/local 10 prefix ?= /usr/local
11 bindir ?= $(prefix)/bin 11 bindir ?= $(prefix)/bin
12 datadir ?= $(prefix)/share 12 datadir ?= $(prefix)/share
13 mandir ?= $(datadir)/man
13 localedir ?= $(datadir)/locale 14 localedir ?= $(datadir)/locale
14 sysconfdir ?= /etc 15 sysconfdir ?= /etc
15 xdgautostartdir ?= $(sysconfdir)/xdg/autostart 16 xdgautostartdir ?= $(sysconfdir)/xdg/autostart
16 17
17 PACKAGE = pk-update-icon 18 PACKAGE = pk-update-icon
67 $(DESTDIR)$(xdgautostartdir)/$(AUTOSTART_FILE) 68 $(DESTDIR)$(xdgautostartdir)/$(AUTOSTART_FILE)
68 for lang in $(patsubst po/%.mo,%,$(MOFILES)); do \ 69 for lang in $(patsubst po/%.mo,%,$(MOFILES)); do \
69 $(INSTALL.data) po/$${lang}.mo \ 70 $(INSTALL.data) po/$${lang}.mo \
70 $(DESTDIR)$(LOCALEDIR)/$${lang}/$(PACKAGE).mo; \ 71 $(DESTDIR)$(LOCALEDIR)/$${lang}/$(PACKAGE).mo; \
71 done 72 done
73 $(INSTALL.data) $(PACKAGE).1 \
74 $(DESTDIR)$(mandir)/man1/$(PACKAGE).1
72 75
73 clean: 76 clean:
74 rm -f $(PACKAGE) $(OBJS) $(POTFILE) $(MOFILES) $(AUTOSTART_FILE) 77 rm -f $(PACKAGE) $(OBJS) $(POTFILE) $(MOFILES) $(AUTOSTART_FILE)
75 78
76 -include $(patsubst %.o,%.P,$(OBJS)) 79 -include $(patsubst %.o,%.P,$(OBJS))