Makefile.am 2.74 KB
Newer Older
Bruno Coudoin's avatar
Bruno Coudoin committed
1 2
## Process this file with automake to produce Makefile.in

3
if !BUILD_MINGW32
4 5 6 7 8
if TEXINFO
DOCS_SUBDIR=docs
else
DOCS_SUBDIR=
endif
9 10 11
else
DOCS_SUBDIR=
endif
12

13
SUBDIRS = po src boards $(DOCS_SUBDIR) autopackage
Bruno Coudoin's avatar
Bruno Coudoin committed
14

15 16 17
# if OS_MACOSX
# SUBDIRS += macosx
# endif
18 19


Bruno Coudoin's avatar
Bruno Coudoin committed
20
icondir=$(datadir)/pixmaps
21
icon_DATA = gcompris.png gcompris-edit.png
Bruno Coudoin's avatar
Bruno Coudoin committed
22

23 24 25 26 27
if BUILD_MINGW32
Applicationsdir = $(datadir)/
Applications_in_files =
Applications_DATA =
else
28
Applicationsdir = $(datadir)/applications/
29 30
Applications_in_files = gcompris.desktop.in gcompris-edit.desktop.in
Applications_DATA = gcompris.desktop gcompris-edit.desktop
31
endif
Bruno Coudoin's avatar
Bruno Coudoin committed
32

33 34
@INTLTOOL_DESKTOP_RULE@

35
EXTRA_DIST = \
36
	$(Applications_in_files) \
Bruno Coudoin's avatar
Bruno Coudoin committed
37
	$(icon_DATA) \
38 39
	intltool-extract.in \
	intltool-merge.in \
40
	intltool-update.in \
41 42 43 44 45 46 47
	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 \
48
	README.mingw README.translators README.windows \
49 50
	config.h.mingw.in Makefile.mingw.in global_win32.mak gcompris.ico gc_admin.ico gcompris-uninstal.ico \
	gcompris-installer.nsi.in
51

Bruno Coudoin's avatar
Bruno Coudoin committed
52

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

Bruno Coudoin's avatar
Bruno Coudoin committed
55 56
install-data-local:
	@$(NORMAL_INSTALL)
57 58
	if test -d $(srcdir)/$(PACKAGE_DATA_DIR); then \
	  $(mkinstalldirs) $(DESTDIR)/$(pkgdatadir)/$(PACKAGE_DATA_DIR); \
59
	  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 .. ; \
Bruno Coudoin's avatar
Bruno Coudoin committed
60 61 62
	fi

dist-hook:
63 64
	if test -d $(PACKAGE_DATA_DIR); then \
	  $(mkinstalldirs) $(distdir)/$(PACKAGE_DATA_DIR); \
65
	  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 .. ; \
Bruno Coudoin's avatar
Bruno Coudoin committed
66
	fi
67 68 69 70 71 72 73 74 75 76 77 78
	@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
Bruno Coudoin's avatar
Bruno Coudoin committed
79 80


81
CONFIG_CLEAN_FILES = gcompris.desktop gcompris-edit.desktop config.h.mingw
Bruno Coudoin's avatar
Bruno Coudoin committed
82

83
clean-local:
84
	rm -f intltool-extract intltool-merge intltool-update
85

86 87
update-voices:
	@if test -d $(PACKAGE_DATA_DIR)/voices; then \
88
	  cd $(PACKAGE_DATA_DIR)/voices ; git pull; cd -; \
89 90
	else \
	  mkdir $(PACKAGE_DATA_DIR)/voices; \
91
	  cd $(PACKAGE_DATA_DIR) ; git checkout -b voices origin/voices ; cd -; \
92
	fi
93

94
all-local:
Bruno Coudoin's avatar
Bruno Coudoin committed
95 96


97
ACLOCAL_AMFLAGS = -I m4