summaryrefslogtreecommitdiffstats
path: root/kolourpaint/Makefile.am
blob: e8c46155240a2d4eb17b0de2288f4a9e313101c7 (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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
SUBDIRS = cursors pics pixmapfx tools views widgets

bin_PROGRAMS = kolourpaint


kolourpaint.o: kolourpaintlicense.h kolourpaintversion.h

kolourpaintlicense.h : $(srcdir)/COPYING
	echo "static const char * const kpLicenseText =" > kolourpaintlicense.h
	cat $(srcdir)/COPYING | sed -e 's/"/\\"/g' -e 's/$$/\\n"/g' -e 's/^/    "/g' >> kolourpaintlicense.h
	echo ";" >> kolourpaintlicense.h

kolourpaintversion.h : $(srcdir)/VERSION
	echo "static const char * const kpVersionText =" > kolourpaintversion.h
	cat $(srcdir)/VERSION | sed -e 's/"/\\"/g' -e 's/$$/"/g' -e 's/^/    "/g' >> kolourpaintversion.h
	echo ";" >> kolourpaintversion.h

CLEANFILES = kolourpaintlicense.h kolourpaintversion.h


kolourpaint_SOURCES = kolourpaint.cpp \
    kpdocument.cpp \
    kpdocumentmetainfo.cpp \
    kpdocumentsaveoptions.cpp \
    kpdocumentsaveoptionswidget.cpp \
    kpview.cpp \
    kpcolor.cpp kpcommandhistory.cpp \
    kpmainwindow.cpp \
    kpmainwindow_edit.cpp kpmainwindow_help.cpp \
    kpmainwindow_image.cpp kpmainwindow_tools.cpp \
    kpmainwindow_file.cpp kpmainwindow_settings.cpp kpmainwindow_statusbar.cpp \
    kpmainwindow_text.cpp \
    kpmainwindow_view.cpp \
    kpselection.cpp kpselectiondrag.cpp kpselectiontransparency.cpp \
    kpsinglekeytriggersaction.cpp \
    kptemppixmap.cpp kptextstyle.cpp \
    kpthumbnail.cpp \
    kptool.cpp \
    kpviewmanager.cpp \
    kpviewscrollablecontainer.cpp \
    kpwidgetmapper.cpp
kolourpaint_LDFLAGS = $(all_libraries) $(KDE_RPATH) $(LIB_TQT) -lDCOP $(LIB_TDECORE) $(LIB_TDEUI) -ltdefx $(LIB_TDEIO) -ltdetexteditor
kolourpaint_LDADD = $(LIB_TDEPRINT) \
    cursors/libkolourpaintcursors.la \
    pixmapfx/libkolourpaintpixmapfx.la \
    tools/libkolourpainttools.la \
    views/libkolourpaintviews.la \
    widgets/libkolourpaintwidgets.la

AM_CPPFLAGS = -I$(srcdir)/cursors -I$(srcdir)/interfaces \
    -I$(srcdir)/pixmapfx \
    -I$(srcdir)/tools \
    -I$(srcdir)/views \
    -I$(srcdir)/widgets $(all_includes)

METASOURCES = AUTO

rcdir = $(kde_datadir)/kolourpaint
rc_DATA = kolourpaintui.rc

xdg_apps_DATA = kolourpaint.desktop

messages: rc.cpp
	$(EXTRACTRC) *.rc *.ui \
		cursors/*.rc cursors/*.ui \
		pixmapfx/*.rc pixmapfx/*.ui \
		tools/*.rc tools/*.ui \
		widgets/*.rc widgets/*.ui \
		>> rc.cpp
	$(XGETTEXT) *.cpp *.h \
		cursors/*.cpp cursors/*.h \
		pixmapfx/*.cpp pixmapfx/*.h \
		tools/*.cpp tools/*.h \
		widgets/*.cpp widgets/*.h \
		-o $(podir)/kolourpaint.pot