-
Notifications
You must be signed in to change notification settings - Fork 10
/
Makefile.am
62 lines (43 loc) · 1.69 KB
/
Makefile.am
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
58
59
60
61
62
########################################################################
# Process this file with automake to produce Makefile.in
########################################################################
SUBDIRS = gphoto-m4 art doc help omf-install packaging pixmaps po src test
ACLOCAL_AMFLAGS = -I m4 -I gphoto-m4
# disable scrollkeeper for distcheck
DISTCHECK_CONFIGURE_FLAGS = --disable-scrollkeeper
########################################################################
# Install a few support and doc files
gtkamdocdir = $(datadir)/doc/gtkam
gtkamdoc_DATA = AUTHORS COPYING NEWS README TODO CHANGES
icondir = $(datadir)/pixmaps
icon_DATA = gtkam.png
DESKTOP_IN_FILES=gtkam.desktop.in
DESKTOP_FILES=$(DESKTOP_IN_FILES:.desktop.in=.desktop)
gtkam.desktop: gtkam.desktop.in
tmpfiles="t-$@ n-t-$@"; \
pofiles=`MAKEFLAGS= $(MAKE) -s -C $(top_builddir)/po print-pofiles`; \
cp $< t-$@ || exit 1; \
for pofile in $$pofiles; do \
$(MSGFMT) --desktop --template t-$@ -o n-t-$@ \
--locale $${pofile%.po} $(top_builddir)/po/$$pofile \
|| { rm -f $$tmpfiles; exit 1; }; \
mv n-t-$@ t-$@ || { rm -f $$tmpfiles; exit 1; } \
done; \
mv t-$@ $@ || { rm -f $$tmpfiles; exit 1; }
Applicationsdir = $(datadir)/applications
Applications_DATA = $(DESKTOP_FILES)
EXTRA_DIST = gtkam.png ChangeLog AUTHORS COPYING NEWS README TODO CHANGES \
$(DESKTOP_IN_FILES) \
$(DESKTOP_FILES)
########################################################################
# Packaging convenience
.PHONY: rpm
if ENABLE_RPM
# create RPM packages
rpm: Makefile
$(MAKE) dist
$(MAKE) -C packaging/rpm rpm
endif
distclean-local:
rm -f $(DESKTOP_FILES)
########################################################################