Makefile.am 2.14 KB
Newer Older
Bernd Gehrmann's avatar
Bernd Gehrmann committed
1
CERVISIA_VERSION = 2.0
2
3
INCLUDES = $(all_includes)
LDFLAGS	= $(all_libraries) $(KDE_RPATH)
4
AM_CPPFLAGS = -UQT_NO_COMPAT -D_BSD_SOURCE
5
6
7
8
9
10

bin_PROGRAMS = cervisia
lib_LTLIBRARIES = libcervisia.la

libcervisia_la_SOURCES = updateview.cpp protocolview.cpp watchdlg.cpp \
		   settingsdlg.cpp changelogdlg.cpp historydlg.cpp repositorydlg.cpp \
Bernd Gehrmann's avatar
update    
Bernd Gehrmann committed
11
		   commitdlg.cpp checkoutdlg.cpp updatedlg.cpp \
12
13
		   tagdlg.cpp mergedlg.cpp \
		   logdlg.cpp logtree.cpp loglist.cpp diffdlg.cpp resolvedlg.cpp diffview.cpp \
14
		   annotatedlg.cpp annotateview.cpp progressdlg.cpp progressdlg.skel \
Lukáš Tinkl's avatar
Lukáš Tinkl committed
15
		   cvsprogressdlg.cpp tiplabel.cpp listview.cpp \
Otto Bruggeman's avatar
Otto Bruggeman committed
16
		   cvsdir.cpp repositories.cpp misc.cpp cervisiapart.cpp qttableview.cpp
Bernd Gehrmann's avatar
Bernd Gehrmann committed
17
libcervisia_la_LDFLAGS = $(all_libraries) -version-info 1:0:0 -module -no-undefined
18
libcervisia_la_LIBADD = $(LIB_KFILE) $(LIB_KPARTS) $(LIB_DCOP)
19
20
21
22
23

cervisia_SOURCES = main.cpp cervisiashell.cpp
cervisia_LDFLAGS = $(all_libraries) $(KDE_RPATH)
cervisia_LDADD = libcervisia.la

Bernd Gehrmann's avatar
Bernd Gehrmann committed
24
man_MANS = cervisia.1
25
26
27
28

METASOURCES = AUTO

EXTRA_DIST = cervisia.desktop cervisia.png cervisia-small.png
Bernd Gehrmann's avatar
Bernd Gehrmann committed
29
CLEANFILES = cervisia.1
30
31

appsdir = $(kde_appsdir)/Development
Bernd Gehrmann's avatar
Bernd Gehrmann committed
32
apps_DATA = cervisia.desktop
33

34
35
partrcdir = $(kde_datadir)/cervisiapart
partrc_DATA = cervisiaui.rc 
36

37
38
shellrcdir = $(kde_datadir)/cervisia
shellrc_DATA = cervisiashellui.rc
39

Dirk Mueller's avatar
Dirk Mueller committed
40
messages: rc.cpp
Dirk Mueller's avatar
Dirk Mueller committed
41
42
	$(EXTRACTRC) *.rc >> rc.cpp
	$(XGETTEXT) -C *.cpp *.h -o $(podir)/cervisia.pot
43
44

install-data-local:
45
46
47
48
	$(mkinstalldirs) $(DESTDIR)/$(kde_icondir)/crystalsvg/32x32/apps
	$(INSTALL_DATA) $(srcdir)/cervisia.png $(DESTDIR)/$(kde_icondir)/crystalsvg/32x32/apps/cervisia.png
	$(mkinstalldirs) $(DESTDIR)/$(kde_icondir)/crystalsvg/16x16/apps
	$(INSTALL_DATA) $(srcdir)/cervisia-small.png $(DESTDIR)/$(kde_icondir)/crystalsvg/16x16/apps/cervisia.png
49
50
51
52

srcdoc:
	$(kde_bindir)/kdoc -a -p -d classdocs -n 'Cervisia' *.h -lqt -lkdecore -lkdeui -lkparts

Bernd Gehrmann's avatar
Bernd Gehrmann committed
53
54
55
56
57
58
59
60
cervisia.1: $(srcdir)/cervisia.1.in
	sed -e 's%_KDEHTMLDIR_%'${kde_htmldir}'%g;' \
	    -e 's%_KDECONFDIR_%'${kde_confdir}'%g;' \
	  < $(srcdir)/cervisia.1.in > cervisia.1

cervisia.1.in: cervisia.pod
	pod2man --center "Cervisia" --release "${CERVISIA_VERSION}" \
		cervisia.pod > cervisia.1.in
61
62

SUBDIRS = cvsservice