summaryrefslogtreecommitdiffstats
path: root/klettres/klettres/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'klettres/klettres/Makefile.am')
-rw-r--r--klettres/klettres/Makefile.am59
1 files changed, 59 insertions, 0 deletions
diff --git a/klettres/klettres/Makefile.am b/klettres/klettres/Makefile.am
new file mode 100644
index 00000000..46b1c832
--- /dev/null
+++ b/klettres/klettres/Makefile.am
@@ -0,0 +1,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)
+
+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
+