summaryrefslogtreecommitdiffstats
path: root/katomic/Makefile.am
blob: b5c2dc52f68dd7cae91191323d06428f6a12eabb (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

INCLUDES = -I$(top_srcdir)/libtdegames -I$(top_srcdir)/libtdegames/highscore $(all_includes)
katomic_LDFLAGS = $(all_libraries) $(KDE_RPATH) $(LIB_QT) -lDCOP $(LIB_KDECORE) $(LIB_KDEUI) -lkdefx $(LIB_KIO) -lktexteditor
katomic_LDADD = $(LIB_KDEGAMES)
katomic_DEPENDENCIES = $(LIB_KDEGAMES_DEP)
METASOURCES = AUTO

bin_PROGRAMS = katomic
katomic_SOURCES = feld.cpp molek.cpp main.cpp toplevel.cpp configbox.cpp\
	gamewidget.cpp

pics_DATA = abilder.png molek.png
picsdir = $(appdir)/pics

xdg_apps_DATA = katomic.desktop

EXTRA_DIST = $(pics_DATA)
KDE_ICON = katomic

appdir = $(kde_datadir)/katomic
app_DATA = katomicui.rc

messages: rc.cpp
	: > levelnames.cpp ;\
	for i in levels/level_*; do \
	egrep '^Name=' $$i | sed -e 's#^Name=\(.*\)$$#i18n(\"\1\")#' >> levelnames.cpp ;\
        done
	$(XGETTEXT) *.cpp -o $(podir)/katomic.pot
	rm -f levelnames.cpp

install-data-local:
	$(mkinstalldirs) $(DESTDIR)$(kde_datadir)/katomic
	-rm -rf $(DESTDIR)$(kde_datadir)/katomic/levels
	mkdir $(DESTDIR)$(kde_datadir)/katomic/levels	
	cp $(srcdir)/levels/level_* $(DESTDIR)$(kde_datadir)/katomic/levels/