File: Makefile.am

package info (click to toggle)
gtkam 1.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 4,328 kB
  • sloc: ansic: 10,269; sh: 4,858; xml: 816; makefile: 233
file content (62 lines) | stat: -rw-r--r-- 1,727 bytes parent folder | download
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)


########################################################################