summaryrefslogtreecommitdiffstats
path: root/korundum/rubylib/rbkconfig_compiler/Makefile.am
blob: 276e32f764db61c5c4315c5ad835cc7c1263c94b (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
SUBDIRS = . tests

RBUIC=rbuic

.ui.rb:
	$(RBUIC) -tr ${UIC_TR} -kde $*.ui -o $@

exampleprefs_base.rb: $(srcdir)/example.kcfg rbkconfig_compiler $(srcdir)/exampleprefs_base.kcfgc
	./rbkconfig_compiler $(srcdir)/example.kcfg $(srcdir)/exampleprefs_base.kcfgc

AM_CPPFLAGS = -I$(top_srcdir)/tdecore -I$(top_srcdir) $(all_includes)

bin_PROGRAMS = rbkconfig_compiler

rbkconfig_compiler_LDFLAGS = $(all_libraries) $(KDE_RPATH) $(LIB_QT) -lDCOP $(LIB_TDECORE) $(LIB_TDEUI) -ltdefx $(LIB_KIO) -ltdetexteditor
rbkconfig_compiler_LDADD = $(LIB_TDECORE)
rbkconfig_compiler_SOURCES = rbkconfig_compiler.cpp

METASOURCES = AUTO

TESTFILES = test1.kcfg test2.kcfg test3.kcfg test4.kcfg test5.kcfg

check-local:
	for i in $(TESTFILES); \
	  do xmllint --noout --schema $(srcdir)/kcfg.xsd $(srcdir)/tests/$$i; \
	  perl $(top_srcdir)/korundum/rubylib/rbkconfig_compiler/checkkcfg.pl \
          $(top_srcdir)/korundum/rubylib/rbkconfig_compiler/tests/$$i; done