annotate Makefile @ 9:d83540fd999c version-2

Release version 2
author Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
date Thu, 08 Aug 2013 16:24:35 +0200
parents 880ab1925442
children 4df0dc4dcc3d
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
9
d83540fd999c Release version 2
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents: 7
diff changeset
26 VERSION = 2
0
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)\" \
7
880ab1925442 Define G_LOG_DOMAIN macro used for debugging
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents: 5
diff changeset
84 -DLOCALEDIR="\"$(localedir)\"" \
880ab1925442 Define G_LOG_DOMAIN macro used for debugging
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents: 5
diff changeset
85 -DG_LOG_DOMAIN=\"$(PACKAGE)\"
0
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
86 LDLIBS := $(LDLIBS_LIBXTST) \
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
87 $(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
88 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
89 --stringparam man.copyright.section.enabled 0
0
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
90
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
91 .DEFAULT_TARGET = all
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
92
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
93 .PHONY: all clean clobber dist install
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
94
5
1508a4c35c47 Rewrite the man page in DocBook 5 XML
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents: 0
diff changeset
95 all: $(PACKAGE) $(MANPAGES) $(MOFILES) $(AUTOSTART_FILE)
0
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
96
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
97 $(PACKAGE): $(OBJS)
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
98 $(LINK.o) $^ $(LDLIBS) -o $@
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
99
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
100 $(POTFILE): po/POTFILES.in $(POSRCS)
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
101 cd po/ && $(INTLTOOL_UPDATE) --pot --gettext-package="$(PACKAGE)"
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
102
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
103 pot: $(POTFILE)
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
104
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
105 update-po: $(POTFILE)
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
106 cd po/ && for lang in $(patsubst po/%.mo,%,$(MOFILES)); do \
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
107 $(INTLTOOL_UPDATE) --dist --gettext-package="$(PACKAGE)" \
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
108 $${lang}; \
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
109 done
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
110
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
111 %.o: %.c
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
112 $(COMPILE.c) -MD -o $@ $<
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
113 @cp $*.d $*.P; \
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
114 $(SED) -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' -e '/^$$/ d' \
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
115 -e 's/$$/ :/' < $*.d >> $*.P; \
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
116 rm -f $*.d
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
117
5
1508a4c35c47 Rewrite the man page in DocBook 5 XML
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents: 0
diff changeset
118 $(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
119
0
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
120 %.desktop: %.desktop.in $(MOFILES)
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
121 $(INTLTOOL_MERGE) --desktop-style --utf8 po $< $@
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
122
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
123 %.mo: %.po
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
124 $(MSGFMT) -o $@ $<
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
125
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
126 install:
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
127 $(INSTALL.exec) $(PACKAGE) "$(DESTDIR)$(bindir)/$(PACKAGE)"
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
128 for lang in $(patsubst po/%.mo,%,$(MOFILES)); do \
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
129 $(INSTALL.data) po/$${lang}.mo \
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
130 "$(DESTDIR)$(localedir)/$${lang}/LC_MESSAGES/$(PACKAGE).mo"; \
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
131 done
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
132 cd data/icons && for icon in */*/*.png scalable/*/*.svg; do \
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
133 $(INSTALL.data) $$icon \
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
134 "$(DESTDIR)$(datadir)/icons/hicolor/$${icon}"; \
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
135 done
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
136 $(INSTALL.data) $(AUTOSTART_FILE) \
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
137 "$(DESTDIR)$(xdgautostartdir)/$(notdir $(AUTOSTART_FILE))"
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
138 $(INSTALL.data) data/$(PACKAGE).1 \
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
139 "$(DESTDIR)$(mandir)/man1/$(PACKAGE).1"
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
140
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
141 clean:
5
1508a4c35c47 Rewrite the man page in DocBook 5 XML
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents: 0
diff changeset
142 rm -f $(PACKAGE) $(OBJS) $(POTFILE) $(MOFILES) $(MANPAGES) $(AUTOSTART_FILE)
0
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
143
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
144 clobber: clean
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
145 rm -f *.P
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
146
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
147 dist: clobber
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
148 $(PAX) -w -x ustar -s ',.*/\..*,,' -s ',./[^/]*\.tar\.gz,,' \
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
149 -s ',\./,$(DISTNAME)/,' . | $(GZIP) > $(DISTNAME).tar.gz
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
150
9a16bf50daba Initial revision
Guido Berhoerster <guido+xinhibit-applet@berhoerster.name>
parents:
diff changeset
151 -include $(patsubst %.o,%.P,$(OBJS))