OSDN Git Service

3c28892c8ad431183b01323249713137a7d53239
[tjqt4port/tj2qt4.git] / taskjuggler / Makefile.am
1 bin_PROGRAMS = taskjuggler
2 taskjuggler_SOURCES =  main.cpp 
3
4 noinst_LTLIBRARIES = libtaskjuggler.la
5
6 libtaskjuggler_la_SOURCES = Utility.cpp ExpressionTree.cpp Report.cpp ReportXML.cpp \
7 CoreAttributes.cpp ShiftList.cpp ResourceList.cpp Task.cpp \
8 TaskScenario.cpp VacationList.cpp \
9 Account.cpp Allocation.cpp MacroTable.cpp ProjectFile.cpp \
10 HTMLTaskReport.cpp HTMLResourceReport.cpp HTMLAccountReport.cpp \
11 HTMLWeeklyCalendar.cpp ReportHtml.cpp ExportReport.cpp \
12 Project.cpp ReportICal.cpp kotrus.cpp
13
14 libtaskjuggler_la_LIBADD = $(LIB_QT) $(KDE_LIBS)
15
16 DTDFILE = taskjuggler.dtd
17
18 # KDE_OPTIONS = qtonly
19 taskjuggler_LDADD  =  libtaskjuggler.la
20
21 # set the include path for X, qt and KDE
22 INCLUDES= $(all_includes) $(ICAL_INCLUDES)
23
24 taskjuggler_METASOURCES = AUTO
25
26 # the library search path. 
27 libtaskjuggler_la_LDFLAGS = $(all_libraries) 
28
29 # this is to enable Qt behavoir of am_edit
30 KDE_OPTIONS = qtonly
31
32 all-am: $(DTDFILE)
33
34 $(DTDFILE): $(taskjuggler_SOURCES)
35         @echo creating $(DTDFILE)
36         @echo '<?xml version="1.0" ?>' >> $(DTDFILE)
37         @echo '<!-- Generated by Makefile - do not edit -->' > $(DTDFILE)
38         @perl -n -e 'print  if( (/-- DTD --/ .. /\/-- DTD ..\//) && $$_ !~ /-- DTD --/);' $(libtaskjuggler_la_SOURCES) >> $(DTDFILE)
39