summaryrefslogtreecommitdiffstats
path: root/kalzium/src/Makefile.am
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commitce599e4f9f94b4eb00c1b5edb85bce5431ab3df2 (patch)
treed3bb9f5d25a2dc09ca81adecf39621d871534297 /kalzium/src/Makefile.am
downloadtdeedu-ce599e4f9f94b4eb00c1b5edb85bce5431ab3df2.tar.gz
tdeedu-ce599e4f9f94b4eb00c1b5edb85bce5431ab3df2.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kalzium/src/Makefile.am')
-rw-r--r--kalzium/src/Makefile.am100
1 files changed, 100 insertions, 0 deletions
diff --git a/kalzium/src/Makefile.am b/kalzium/src/Makefile.am
new file mode 100644
index 00000000..7e5b3295
--- /dev/null
+++ b/kalzium/src/Makefile.am
@@ -0,0 +1,100 @@
+# set the include path for X, qt and KDE
+INCLUDES= -I$(srcdir)/../../libkdeedu/kdeeduplot -I$(srcdir)/../../libkdeedu/kdeeduui $(all_includes)
+
+bin_PROGRAMS = kalzium
+kalzium_SOURCES = eqresult.cpp eqchemview.cpp kalzium.cpp \
+ main.cpp \
+ periodictableview.cpp \
+ element.cpp \
+ prefs.kcfgc \
+ settings_colors.ui \
+ settings_misc.ui \
+ settings_units.ui \
+ detailinfodlg.cpp \
+ orbitswidget.cpp \
+ plotwidget.cpp \
+ elementdataviewer.cpp \
+ plotsetupwidget.ui \
+ detailedgraphicaloverview.cpp \
+ molcalcwidgetbase.ui \
+ molcalcwidget.cpp \
+ timewidget.ui \
+ timewidget_impl.cpp \
+ somwidget.ui \
+ somwidget_impl.cpp \
+ kalziumtip.cpp \
+ spectrum.cpp \
+ isotope.cpp \
+ kalziumdataobject.cpp \
+ spectrumwidget.cpp \
+ exporter.cpp \
+ spectrumview.ui \
+ spectrumviewimpl.cpp \
+ kalziumutils.cpp \
+ parser.cpp \
+ moleculeparser.cpp \
+ tempunit.cpp
+
+kalzium_LDADD = ../../libkdeedu/kdeeduplot/libkdeeduplot.la ../../libkdeedu/kdeeduui/libkdeeduui.la $(LIB_KIO) $(LIB_KDEUI) $(LIB_KHTML) -L$(OCAMLLIB) -L$(FACILELIB) $(EQCHEM_LDADD)
+KDE_CXXFLAGS = -D_ISOC99_SOURCE
+
+SUBDIRS = icons elementpics data $(EQCHEM_SUB)
+
+EXTRA_DIST = main.cpp \
+ kalzium.cpp kalzium.h \
+ periodictableview.cpp periodictableview.h \
+ element.cpp element.h \
+ settings_colors.ui \
+ settings_misc.ui \
+ detailinfodlg.cpp detailinfodlg.h \
+ orbitswidget.cpp orbitswidget.h \
+ plotwidget.cpp plotwidget.h \
+ elementdataviewer.cpp elementdataviewer.h \
+ detailedgraphicaloverview.cpp detailedgraphicaloverview.h \
+ molcalcwidget.cpp molcalcwidget.h \
+ timewidget.ui \
+ timewidget_impl.cpp timewidget_impl.h \
+ somwidget.ui \
+ somwidget_impl.cpp somwidget_impl.h \
+ spectrum.cpp spectrum.h \
+ isotope.cpp isotope.h \
+ kalziumdataobject.cpp kalziumdataobject.h \
+ spectrumwidget.cpp spectrumwidget.h \
+ exporter.cpp exporter.h \
+ spectrumview.ui \
+ spectrumviewimpl.cpp spectrumviewimpl.h \
+ kalziumutils.cpp kalziumutils.h \
+ parser.cpp parser.h \
+ moleculeparser.cpp moleculeparser.h \
+ tempunit.cpp tempunit.h
+
+METASOURCES = AUTO
+
+xdg_apps_DATA = kalzium.desktop
+kde_kcfg_DATA = kalzium.kcfg
+
+rcuidir = $(kde_datadir)/kalzium
+rcui_DATA = kalziumui.rc
+
+KDE_ICON = AUTO
+
+# the library search path.
+kalzium_LDFLAGS = $(all_libraries) $(KDE_RPATH)
+
+#this RegExp-monster grep for <name origin=foo">bar</name> and puts the i18n() around foo and bar
+messages-old: rc.cpp
+ cat data/data.xml | grep name| sed -e 's/< *name *origin *= *"\([^\"]*\)\">\([^<]*\)<\/ *name *>/I18N_NOOP(\"\1\"); I18N_NOOP(\"\2\");/;s/I18N_NOOP("");//g' | grep I18N_NOOP >> rc.cpp
+ cat data/knowledge.xml | grep name| sed -e 's/< *name *>\([^<]*\)<\/ *name *>/I18N_NOOP(\"\1\");/' >> rc.cpp
+ cat data/knowledge.xml | grep desc | sed -e 's/< *desc *>\([^<]*\)<\/ *desc *>/I18N_NOOP(\"\1\");/' >> rc.cpp
+ cat data/knowledge.xml | grep refitem | sed -e 's/< *refitem *>\([^<]*\)<\/ *refitem *>/I18N_NOOP(\"\1\");/' >> rc.cpp
+ cat data/tools.xml | grep name | sed -e 's/< *name *>\([^<]*\)<\/ *name *>/I18N_NOOP(\"\1\");/' >> rc.cpp
+ cat data/tools.xml | grep desc | sed -e 's/< *desc *>\([^<]*\)<\/ *desc *>/I18N_NOOP(\"\1\");/' >> rc.cpp
+ $(XGETTEXT) *.cpp -o $(podir)/kalzium.pot
+ rm -f rc.cpp # for testing
+
+messages: rc.cpp
+ $(EXTRACTATTR) --attr=name,origin data/data.xml >> rc.cpp
+ $(EXTRACTRC) --tag-group=none --tag=name data/data.xml >> rc.cpp
+ $(EXTRACTRC) --tag-group=none --tag=name --tag=desc --tag=refitem data/knowledge.xml >> rc.cpp
+ $(EXTRACTRC) --tag-group=none --tag=name --tag=desc data/tools.xml >> rc.cpp
+ $(XGETTEXT) *.cpp -o $(podir)/kalzium.pot