annotate Makefile @ 6:88623e3fd59e

Add some more information to the README file
author Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
date Thu, 08 Aug 2013 16:24:30 +0200
parents 1508a4c35c47
children 880ab1925442
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
1 #
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
2 # Copyright (C) 2013 Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
3 #
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
4 # Permission is hereby granted, free of charge, to any person obtaining
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
5 # a copy of this software and associated documentation files (the
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
6 # "Software"), to deal in the Software without restriction, including
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
7 # without limitation the rights to use, copy, modify, merge, publish,
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
8 # distribute, sublicense, and/or sell copies of the Software, and to
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
9 # permit persons to whom the Software is furnished to do so, subject to
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
10 # the following conditions:
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
11 #
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
12 # The above copyright notice and this permission notice shall be included
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
13 # in all copies or substantial portions of the Software.
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
14 #
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
15 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
16 # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
17 # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
18 # IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
19 # CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
20 # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
21 # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
22 #
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
23
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
24 PACKAGE = xinhibit-applet
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
25 APP_NAME = org.guido-berhoerster.xinhibit-applet
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
26 VERSION = 1
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
27 DISTNAME := $(PACKAGE)-$(VERSION)
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
28
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
29 INSTALL := install
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
30 INSTALL.exec := $(INSTALL) -D -m 0755
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
31 INSTALL.data := $(INSTALL) -D -m 0644
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
32 PAX := pax
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
33 GZIP := gzip
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
34 SED := sed
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
35 MSGFMT := msgfmt
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
36 INTLTOOL_UPDATE := intltool-update
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
37 INTLTOOL_MERGE := intltool-merge
5
1508a4c35c47 Rewrite the man page in DocBook 5 XML
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents: 0
diff changeset
38 XSLTPROC := xsltproc
1508a4c35c47 Rewrite the man page in DocBook 5 XML
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents: 0
diff changeset
39 DOCBOOK5_MANPAGES_STYLESHEET = http://docbook.sourceforge.net/release/xsl-ns/current/manpages/docbook.xsl
1508a4c35c47 Rewrite the man page in DocBook 5 XML
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents: 0
diff changeset
40
1508a4c35c47 Rewrite the man page in DocBook 5 XML
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents: 0
diff changeset
41 define generate-manpage-rule =
1508a4c35c47 Rewrite the man page in DocBook 5 XML
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents: 0
diff changeset
42 %.$(1): %.$(1).xml
1508a4c35c47 Rewrite the man page in DocBook 5 XML
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents: 0
diff changeset
43 $$(XSLTPROC) \
1508a4c35c47 Rewrite the man page in DocBook 5 XML
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents: 0
diff changeset
44 --xinclude \
1508a4c35c47 Rewrite the man page in DocBook 5 XML
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents: 0
diff changeset
45 --stringparam package $$(PACKAGE) \
1508a4c35c47 Rewrite the man page in DocBook 5 XML
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents: 0
diff changeset
46 --stringparam version $$(VERSION)\
1508a4c35c47 Rewrite the man page in DocBook 5 XML
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents: 0
diff changeset
47 data/docbook-update-source-data.xsl $$< | \
1508a4c35c47 Rewrite the man page in DocBook 5 XML
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents: 0
diff changeset
48 $$(XSLTPROC) \
1508a4c35c47 Rewrite the man page in DocBook 5 XML
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents: 0
diff changeset
49 --xinclude \
1508a4c35c47 Rewrite the man page in DocBook 5 XML
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents: 0
diff changeset
50 $$(DOCBOOK5_MANPAGES_FLAGS) \
1508a4c35c47 Rewrite the man page in DocBook 5 XML
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents: 0
diff changeset
51 --output $$@ \
1508a4c35c47 Rewrite the man page in DocBook 5 XML
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents: 0
diff changeset
52 $$(DOCBOOK5_MANPAGES_STYLESHEET) \
1508a4c35c47 Rewrite the man page in DocBook 5 XML
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents: 0
diff changeset
53 -
1508a4c35c47 Rewrite the man page in DocBook 5 XML
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents: 0
diff changeset
54 endef
0
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
55
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
56 DESTDIR ?=
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
57 prefix ?= /usr/local
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
58 bindir ?= $(prefix)/bin
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
59 datadir ?= $(prefix)/share
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
60 mandir ?= $(datadir)/man
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
61 localedir ?= $(datadir)/locale
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
62 sysconfdir ?= /etc
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
63 xdgautostartdir ?= $(sysconfdir)/xdg/autostart
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
64
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
65 HAVE_LIBXTST ?= 1
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
66
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
67 ifeq ($(HAVE_LIBXTST),1)
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
68 CPPFLAGS_LIBXTST := -DHAVE_LIBXTST
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
69 LDLIBS_LIBXTST := -lX11 -lXext -lXtst
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
70 endif
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
71
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
72 OBJS = main.o xia-icon.o xia-inhibitor.o xia-debug.o
5
1508a4c35c47 Rewrite the man page in DocBook 5 XML
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents: 0
diff changeset
73 MANPAGES = data/$(PACKAGE).1
0
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
74 AUTOSTART_FILE = data/$(PACKAGE).desktop
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
75 MOFILES := $(patsubst %.po,%.mo,$(wildcard po/*.po))
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
76 POTFILE = po/$(PACKAGE).pot
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
77 POSRCS := $(shell sed -e 's/\#.*//' -e '/^[ \t]*$$/d' \
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
78 -e 's/^\[[^]]*\]//' po/POTFILES.in | paste -s -d ' ')
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
79 CPPFLAGS := $(CPPFLAGS_LIBXTST) \
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
80 $(shell pkg-config --cflags glib-2.0 gtk+-2.0 unique-1.0) \
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
81 -DPACKAGE="\"$(PACKAGE)\"" \
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
82 -DAPP_NAME=\"$(APP_NAME)\" \
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
83 -DVERSION=\"$(VERSION)\" \
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
84 -DLOCALEDIR="\"$(localedir)\""
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
85 LDLIBS := $(LDLIBS_LIBXTST) \
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
86 $(shell pkg-config --libs glib-2.0 gtk+-2.0 unique-1.0)
5
1508a4c35c47 Rewrite the man page in DocBook 5 XML
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents: 0
diff changeset
87 DOCBOOK5_MANPAGES_FLAGS = --stringparam man.authors.section.enabled 0 \
1508a4c35c47 Rewrite the man page in DocBook 5 XML
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents: 0
diff changeset
88 --stringparam man.copyright.section.enabled 0
0
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
89
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
90 .DEFAULT_TARGET = all
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
91
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
92 .PHONY: all clean clobber dist install
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
93
5
1508a4c35c47 Rewrite the man page in DocBook 5 XML
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents: 0
diff changeset
94 all: $(PACKAGE) $(MANPAGES) $(MOFILES) $(AUTOSTART_FILE)
0
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
95
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
96 $(PACKAGE): $(OBJS)
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
97 $(LINK.o) $^ $(LDLIBS) -o $@
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
98
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
99 $(POTFILE): po/POTFILES.in $(POSRCS)
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
100 cd po/ && $(INTLTOOL_UPDATE) --pot --gettext-package="$(PACKAGE)"
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
101
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
102 pot: $(POTFILE)
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
103
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
104 update-po: $(POTFILE)
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
105 cd po/ && for lang in $(patsubst po/%.mo,%,$(MOFILES)); do \
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
106 $(INTLTOOL_UPDATE) --dist --gettext-package="$(PACKAGE)" \
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
107 $${lang}; \
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
108 done
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
109
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
110 %.o: %.c
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
111 $(COMPILE.c) -MD -o $@ $<
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
112 @cp $*.d $*.P; \
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
113 $(SED) -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' -e '/^$$/ d' \
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
114 -e 's/$$/ :/' < $*.d >> $*.P; \
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
115 rm -f $*.d
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
116
5
1508a4c35c47 Rewrite the man page in DocBook 5 XML
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents: 0
diff changeset
117 $(foreach section,1 2 3 4 5 6 7 8 9,$(eval $(call generate-manpage-rule,$(section))))
1508a4c35c47 Rewrite the man page in DocBook 5 XML
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents: 0
diff changeset
118
0
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
119 %.desktop: %.desktop.in $(MOFILES)
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
120 $(INTLTOOL_MERGE) --desktop-style --utf8 po $< $@
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
121
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
122 %.mo: %.po
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
123 $(MSGFMT) -o $@ $<
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
124
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
125 install:
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
126 $(INSTALL.exec) $(PACKAGE) "$(DESTDIR)$(bindir)/$(PACKAGE)"
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
127 for lang in $(patsubst po/%.mo,%,$(MOFILES)); do \
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
128 $(INSTALL.data) po/$${lang}.mo \
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
129 "$(DESTDIR)$(localedir)/$${lang}/LC_MESSAGES/$(PACKAGE).mo"; \
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
130 done
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
131 cd data/icons && for icon in */*/*.png scalable/*/*.svg; do \
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
132 $(INSTALL.data) $$icon \
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
133 "$(DESTDIR)$(datadir)/icons/hicolor/$${icon}"; \
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
134 done
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
135 $(INSTALL.data) $(AUTOSTART_FILE) \
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
136 "$(DESTDIR)$(xdgautostartdir)/$(notdir $(AUTOSTART_FILE))"
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
137 $(INSTALL.data) data/$(PACKAGE).1 \
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
138 "$(DESTDIR)$(mandir)/man1/$(PACKAGE).1"
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
139
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
140 clean:
5
1508a4c35c47 Rewrite the man page in DocBook 5 XML
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents: 0
diff changeset
141 rm -f $(PACKAGE) $(OBJS) $(POTFILE) $(MOFILES) $(MANPAGES) $(AUTOSTART_FILE)
0
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
142
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
143 clobber: clean
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
144 rm -f *.P
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
145
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
146 dist: clobber
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
147 $(PAX) -w -x ustar -s ',.*/\..*,,' -s ',./[^/]*\.tar\.gz,,' \
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
148 -s ',\./,$(DISTNAME)/,' . | $(GZIP) > $(DISTNAME).tar.gz
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
149
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
150 -include $(patsubst %.o,%.P,$(OBJS))