File: Makefile.am

package info (click to toggle)
gcompris 14.12-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 390,924 kB
  • ctags: 10,712
  • sloc: ansic: 88,896; xml: 53,180; python: 25,213; sh: 13,021; makefile: 8,177
file content (95 lines) | stat: -rw-r--r-- 2,925 bytes parent folder | download | duplicates (2)
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
## Process this file with automake to produce Makefile.in

SUBDIRS = po src boards sugar

# if OS_MACOSX
# SUBDIRS += macosx
# endif


icondir=$(datadir)/pixmaps
icon_DATA = gcompris.png gcompris-edit.png

if BUILD_MINGW32
Applicationsdir = $(datadir)/
Applications_in_files =
Applications_DATA =
else
Applicationsdir = $(datadir)/applications/
Applications_in_files = gcompris.desktop.in gcompris-edit.desktop.in
Applications_DATA = gcompris.desktop gcompris-edit.desktop

appdatadir = $(datadir)/appdata
appdata_DATA = $(appdata_in_files:.xml.in=.xml)
appdata_in_files = gcompris.appdata.xml.in
endif

@INTLTOOL_DESKTOP_RULE@
@INTLTOOL_XML_RULE@

EXTRA_DIST = \
	$(Applications_in_files) \
	$(appdata_in_files) \
	$(icon_DATA) \
	intltool-extract.in \
	intltool-merge.in \
	intltool-update.in \
	gnome2-macros/autogen.sh \
	gnome2-macros/compiler-flags.m4 \
	gnome2-macros/curses.m4 \
	gnome2-macros/gnome2-macros.dep \
	gnome2-macros/gnome-autogen.sh \
	gnome2-macros/gnome-common.m4 \
	gnome2-macros/gnome-deprecated-macros.m4 \
	README.mingw README.translators README.windows \
	config.h.mingw.in Makefile.mingw.in global_win32.mak gcompris.ico gc_admin.ico gcompris-uninstal.ico \
	gcompris-installer.nsi.in nsis_translations.desktop.in


distcore = $(PACKAGE)-core-$(VERSION)

install-data-local:
	@$(NORMAL_INSTALL)
	if test -d $(srcdir)/$(PACKAGE_DATA_DIR); then \
	  $(mkinstalldirs) $(DESTDIR)/$(pkgdatadir)/$(PACKAGE_DATA_DIR); \
	  cd $(srcdir)/$(PACKAGE_DATA_DIR) ; tar cf - --dereference --exclude "Makefile.in" --exclude "*.in" --exclude "*~" --exclude "Makefile" --exclude "Makefile.am" --exclude .git * | ( cd $(DESTDIR)/$(pkgdatadir)/$(PACKAGE_DATA_DIR) ; tar xf -) ; cd .. ; \
	fi

dist-hook:
	if test -d $(PACKAGE_DATA_DIR); then \
	  $(mkinstalldirs) $(distdir)/$(PACKAGE_DATA_DIR); \
	  cd $(srcdir)/$(PACKAGE_DATA_DIR) ; tar cf - --dereference --exclude "Makefile.in" --exclude "Makefile" --exclude "*~" --exclude ".*" --exclude .git * | ( cd ../$(distdir)/$(PACKAGE_DATA_DIR) ; tar xf -) ; cd .. ; \
	fi
	@if test -d "$(srcdir)/.git"; \
	then \
		echo Creating ChangeLog && \
		( cd "$(top_srcdir)" && \
		  echo '# Generated by Makefile. Do not edit.'; echo; \
		  $(top_srcdir)/missing --run git log --stat ) > ChangeLog.tmp \
		&& mv -f ChangeLog.tmp $(top_distdir)/ChangeLog \
		|| ( rm -f ChangeLog.tmp ; \
		     echo Failed to generate ChangeLog >&2 ); \
	else \
		echo A git clone is required to generate a ChangeLog >&2; \
	fi


CONFIG_CLEAN_FILES = gcompris.desktop gcompris-edit.desktop config.h.mingw

clean-local:
	rm -f intltool-extract intltool-merge intltool-update

update-voices:
	@if test -d $(PACKAGE_DATA_DIR)/voices; then \
	  cd $(PACKAGE_DATA_DIR)/voices ; git pull; cd -; \
	else \
	  mkdir $(PACKAGE_DATA_DIR)/voices; \
	  cd $(PACKAGE_DATA_DIR) ; git checkout -b voices origin/voices ; cd -; \
	fi

all-local:

install-activity:
	$(MAKE) -C src $@

ACLOCAL_AMFLAGS = -I m4