summaryrefslogtreecommitdiffstats
path: root/kig/Makefile.am
blob: 3f6bebd1fc52667b4052d6e5b679b3816d44c763 (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
60
INCLUDES         = $(all_includes)

if KIG_COMPILE_PYTHON_SCRIPTING
scriptingdir = scripting
scriptinglib = scripting/libscripting.la
else
scriptingdir =
scriptinglib =
endif

SUBDIRS = \
	objects \
	misc \
	modes \
	icons \
	filters \
	examples \
	kig \
	mimetypes \
	macros \
	tdefile \
	data \
	pykig \
	$(scriptingdir)

kde_module_LTLIBRARIES = libkigpart.la
libkigpart_la_SOURCES = dummy.cpp
libkigpart_la_LDFLAGS = -module $(KDE_PLUGIN) $(all_libraries) $(LIB_TQT) $(LIB_TDECORE) $(LIB_TDEUI) $(LIB_TDEIO) -ltdetexteditor
libkigpart_la_LIBADD  = $(LIB_TDEPARTS) \
	misc/libmisc.la objects/libobjects.la filters/libfilters.la \
	modes/libmodes.la kig/libkigparttemp.la $(scriptinglib)

messages: rc.cpp
	rm -f tips.cpp
	$(EXTRACTRC) */*.rc >> rc.cpp
	$(EXTRACTRC) */*.ui >> rc.cpp
	(cd data && $(PREPARETIPS) > ../tips.cpp)
	for file in macros/*.kigt; do \
		cat "$$file" | grep '<Name>' | sed -e 's/^ *<Name>\([^<]*\)<\/Name>/i18n( "\1" );/' | sed -e 's/&amp;/\&/g' >> rc.cpp; \
		cat "$$file" | grep '<Description>' | sed -e 's/^ *<Description>\([^<]*\)<\/Description>/i18n( "\1" );/' | sed -e 's/&amp;/\&/g' >> rc.cpp; \
		cat "$$file" | grep '<UseText>' | sed -e 's/^ *<UseText>\([^<]*\)<\/UseText>/i18n( "\1" );/' | sed -e 's/&amp;/\&/g' >> rc.cpp; \
		cat "$$file" | grep '<SelectStatement>' | sed -e 's/^ *<SelectStatement>\([^<]*\)<\/SelectStatement>/i18n( "\1" );/' | sed -e 's/&amp;/\&/g' >> rc.cpp; \
	done
	$(XGETTEXT) tips.cpp rc.cpp filters/*.h kig/*.h misc/*.h modes/*.h objects/*.h scripting/*.h */*.cpp kig/*.cpp misc/*.cpp modes/*.cpp -o $(podir)/kig.pot
	$(XGETTEXT) tdefile/tdefile_drgeo.cpp tdefile/tdefile_drgeo.h -o $(podir)/tdefile_drgeo.pot
	$(XGETTEXT) tdefile/tdefile_kig.cpp tdefile/tdefile_kig.h -o $(podir)/tdefile_kig.pot

CLEANFILES = dummy.cpp

dummy.cpp: 
	touch dummy.cpp

TAGS: 
	find -name '*.cpp' -o -name '*.h' | etags -

# Want to do the scripting part separately, but
# include everything else.
DOXYGEN_EXCLUDE = python-scripting-api-dox-mainpage.dox
DOXYGEN_SET_RECURSIVE = YES
include ../admin/Doxyfile.am