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

3 4 5 6 7 8
if TEXINFO
DOCS_SUBDIR=docs
else
DOCS_SUBDIR=
endif

9
SUBDIRS = po src boards $(DOCS_SUBDIR) autopackage
Bruno Coudoin's avatar
Bruno Coudoin committed
10 11

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

14
Applicationsdir = $(datadir)/applications/
15 16
Applications_in_files = gcompris.desktop.in gcompris-edit.desktop.in
Applications_DATA = gcompris.desktop gcompris-edit.desktop
Bruno Coudoin's avatar
Bruno Coudoin committed
17 18 19 20

Menudir=$(prefix)/lib/menu
Menu_DATA=gcompris

21 22
@INTLTOOL_DESKTOP_RULE@

23
EXTRA_DIST = \
24
	$(Applications_in_files) \
Bruno Coudoin's avatar
Bruno Coudoin committed
25 26
	$(icon_DATA) \
	$(Menu_DATA) \
27
	gcompris.spec \
28 29
	intltool-extract.in \
	intltool-merge.in \
30
	intltool-update.in \
31
	gnome2-macros \
32
	README.mingw README.translators README.windows \
Bruno Coudoin's avatar
Bruno Coudoin committed
33
	config.h.mingw Makefile.mingw global_win32.mak gcompris.ico gcompris-uninstal.ico \
34
	gcompris-installer.nsi
35

Bruno Coudoin's avatar
Bruno Coudoin committed
36

Bruno Coudoin's avatar
Bruno Coudoin committed
37 38
distcore = $(PACKAGE)-core-$(VERSION)

Bruno Coudoin's avatar
Bruno Coudoin committed
39 40
install-data-local:
	@$(NORMAL_INSTALL)
41 42
	if test -d $(srcdir)/$(PACKAGE_DATA_DIR); then \
	  $(mkinstalldirs) $(DESTDIR)/$(pkgdatadir)/$(PACKAGE_DATA_DIR); \
43
	  cd $(srcdir)/$(PACKAGE_DATA_DIR) ; tar cf -  --exclude "Makefile.in" --exclude "*.in" --exclude "*~" --exclude "Makefile" --exclude "Makefile.am" --exclude CVS --exclude .xvpics --exclude "1[1-9].ogg"  --exclude "2?.ogg" * | ( cd $(DESTDIR)/$(pkgdatadir)/$(PACKAGE_DATA_DIR) ; tar xf -) ; cd .. ; \
Bruno Coudoin's avatar
Bruno Coudoin committed
44 45 46
	fi

dist-hook:
47 48 49
	if test -d $(PACKAGE_DATA_DIR); then \
	  $(mkinstalldirs) $(distdir)/$(PACKAGE_DATA_DIR); \
	  cd $(srcdir)/$(PACKAGE_DATA_DIR) ; tar cf -  --exclude "Makefile.in" --exclude "Makefile" --exclude "*~" --exclude ".*" --exclude CVS --exclude .xvpics * | ( cd ../$(distdir)/$(PACKAGE_DATA_DIR) ; tar xf -) ; cd .. ; \
Bruno Coudoin's avatar
Bruno Coudoin committed
50 51 52
	fi


53
CLEANFILES = core-translation-report gcompris.desktop gcompris-edit.desktop gcompris.spec config.h.mingw
Bruno Coudoin's avatar
Bruno Coudoin committed
54

55
clean-local:
56
	rm -f intltool-extract intltool-merge intltool-update
Bruno Coudoin's avatar
Bruno Coudoin committed
57 58 59 60 61 62 63 64 65 66 67 68

# Creates separates distribution files for the sounds by locale
dist-sounds:
	./create_dist_sounds en @ALL_LINGUAS@

# Create a core dist file without localized sounds file
dist-core:
	cp $(distdir).tar.gz $(distcore).tar.gz
	gzip -df $(distcore).tar.gz
	tar f $(distcore).tar --delete $(distdir)/boards/sounds
	gzip --best $(distcore).tar
	@echo Created $(distcore).tar.gz
69

70
all-local:
Bruno Coudoin's avatar
Bruno Coudoin committed
71 72


73
ACLOCAL_AMFLAGS =