moved kdeaccessibility kdeaddons kdeadmin kdeartwork kdebindings kdeedu kdegames...
[kdeedu.git] / klettres / klettres / Makefile.am
blobd929472c7c3108427020536db862ac78e7719f18
1 ####### kdevelop will overwrite this part!!! (begin)##########
2 bin_PROGRAMS = klettres
4 ## INCLUDES were found outside kdevelop specific part
6 klettres_SOURCES = fontsdlg.ui klettres.cpp klnewstuff.cpp main.cpp klettresview.cpp soundfactory.cpp prefs.kcfgc timerdlg.ui
7 klettres_LDADD   = $(LIB_KDEUI) -lknewstuff
9 SUBDIRS = pics data icons
11 xdg_apps_DATA = klettres.desktop
12 kde_kcfg_DATA = klettres.kcfg
13 kde_conf_DATA = klettresrc
15 appdir = $(kde_datadir)/klettres
16 app_DATA = klettresui.rc
18 ####### kdevelop will overwrite this part!!! (end)############
19 # set the include path for X, qt and KDE
20 INCLUDES= $(all_includes)
22 METASOURCES = AUTO
24 KDE_ICON = AUTO
26 # the library search path.
27 klettres_LDFLAGS = $(all_libraries) $(KDE_RPATH)
29 messages: rc.cpp
30         $(XGETTEXT) *.cpp -o $(podir)/klettres.pot;
32 LANGS = fr en
33 SUBS = alpha syllab
35 xmlen_DATA = en/sounds.xml
36 xmlendir = $(kde_datadir)/klettres/en
38 xmlfr_DATA = fr/sounds.xml
39 xmlfrdir = $(kde_datadir)/klettres/fr
41 install-data-local:
42         @for lang in $(LANGS); do \
43                 for sub in $(SUBS); do \
44                    $(mkinstalldirs) $(DESTDIR)$(kde_datadir)/klettres/$$lang/$$sub ;\
45                    list=`cd $(srcdir)/$$lang/$$sub && ls -1d *` ;\
46                    for file in $$list; do \
47                         if test -f $(srcdir)/$$lang/$$sub/$$file; then \
48                             echo $(INSTALL_DATA) $(srcdir)/$$lang/$$sub/$$file $(DESTDIR)$(kde_datadir)/klettres/$$lang/$$sub/$$file ;\
49                             $(INSTALL_DATA) $(srcdir)/$$lang/$$sub/$$file $(DESTDIR)$(kde_datadir)/klettres/$$lang/$$sub/$$file ;\
50                         fi ;\
51                    done ;\
52                 done ;\
53         done
55 uninstall-local:
56         for lang in $(LANGS); do \
57                 rm -rf $(DESTDIR)$(kde_datadir)/klettres/$$lang ;\
58         done