summaryrefslogtreecommitdiffstats
path: root/klettres/klettres/Makefile.am
blob: 9dc4ccbc0515f52c015d756056525d97f5d03396 (plain)
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
####### kdevelop will overwrite this part!!! (begin)##########
bin_PROGRAMS = klettres

## INCLUDES were found outside kdevelop specific part

klettres_SOURCES = fontsdlg.ui klettres.cpp klnewstuff.cpp main.cpp klettresview.cpp soundfactory.cpp prefs.kcfgc timerdlg.ui timer.cpp
klettres_LDADD   = $(LIB_KDEUI) -lknewstuff

SUBDIRS = pics data icons

xdg_apps_DATA = klettres.desktop
kde_kcfg_DATA = klettres.kcfg
kde_conf_DATA = klettresrc

appdir = $(kde_datadir)/klettres
app_DATA = klettresui.rc

####### kdevelop will overwrite this part!!! (end)############
# set the include path for X, qt and KDE
INCLUDES= $(all_includes)

METASOURCES = AUTO

KDE_ICON = AUTO

# the library search path.
klettres_LDFLAGS = $(all_libraries) $(KDE_RPATH) $(LIB_QT) -lDCOP $(LIB_KDECORE) $(LIB_KDEUI) -ltdefx $(LIB_KIO) -lktexteditor

messages: rc.cpp
	$(XGETTEXT) *.cpp -o $(podir)/klettres.pot;

LANGS = fr en
SUBS = alpha syllab

xmlen_DATA = en/sounds.xml
xmlendir = $(kde_datadir)/klettres/en

xmlfr_DATA = fr/sounds.xml
xmlfrdir = $(kde_datadir)/klettres/fr

install-data-local:
	@for lang in $(LANGS); do \
		for sub in $(SUBS); do \
		   $(mkinstalldirs) $(DESTDIR)$(kde_datadir)/klettres/$$lang/$$sub ;\
		   list=`cd $(srcdir)/$$lang/$$sub && ls -1d *` ;\
		   for file in $$list; do \
			if test -f $(srcdir)/$$lang/$$sub/$$file; then \
			    echo $(INSTALL_DATA) $(srcdir)/$$lang/$$sub/$$file $(DESTDIR)$(kde_datadir)/klettres/$$lang/$$sub/$$file ;\
			    $(INSTALL_DATA) $(srcdir)/$$lang/$$sub/$$file $(DESTDIR)$(kde_datadir)/klettres/$$lang/$$sub/$$file ;\
			fi ;\
		   done ;\
		done ;\
	done

uninstall-local:
	for lang in $(LANGS); do \
		rm -rf $(DESTDIR)$(kde_datadir)/klettres/$$lang ;\
	done