aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.am
blob: 95c6e664bea19435d2b150037926487980ead475 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
desktopdir = $(datadir)/applications
desktop_in_files = camorama.desktop.in
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)

man_MANS = camorama.1

appdatadir = $(datadir)/metainfo
appdata_in_files = camorama.appdata.xml.in
nodist_appdata_DATA = $(appdata_in_files:.xml.in=.xml)

SUBDIRS = src data po

EXTRA_DIST =					\
	autogen.sh				\
	camorama.1				\
	camorama.desktop.in			\
	camorama.appdata.xml.in

CLEANFILES=\
	camorama.desktop     \
	camorama.appdata.xml \
	po/camorama.pot

pixmapdir   = $(datadir)/pixmaps

install-icons:
	for i in 16 24 32 48 64 128 256 512; do \
		$(mkinstalldirs) $(DESTDIR)$(datadir)/icons/hicolor/$${i}x$${i}/devices; \
		$(INSTALL_DATA) pixmaps/camorama-$${i}.png $(DESTDIR)$(datadir)/icons/hicolor/$${i}x$${i}/devices/camorama.png; \
	done

install-data-local: install-icons
@$(NORMAL_INSTALL)
	$(mkinstalldirs) $(DESTDIR)$(pixmapdir); \
	$(mkinstalldirs) $(DESTDIR)$(datadir)/camorama/pixmaps; \
	for pixmap in $(srcdir)/pixmaps/*.png; do \
		if test -f $$pixmap; then \
			$(INSTALL_DATA) $$pixmap $(DESTDIR)$(pixmapdir); \
			$(INSTALL_DATA) $$pixmap $(DESTDIR)$(datadir)/camorama/pixmaps; \
		fi \
	done

dist-hook:
	if test -d pixmaps; then \
	mkdir $(distdir)/pixmaps; \
	for pixmap in pixmaps/*; do \
	if test -f $$pixmap; then \
	cp -p $$pixmap $(distdir)/pixmaps; \
	fi \
	done \
fi

camorama.desktop: camorama.desktop.in
	msgfmt --desktop -d $(top_srcdir)/po --template $< -o $@

camorama.appdata.xml: camorama.appdata.xml.in
	msgfmt --xml -d $(top_srcdir)/po --template $< -o $@

Privacy Policy