summaryrefslogtreecommitdiffstats
path: root/kdpkg-install/Makefile.am
blob: c7a7659a6ce598e196c29b8edcba346d752afa95 (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
# set the include path for X, qt and KDE
AM_CPPFLAGS = $(all_includes)

# these are the headers for your project
noinst_HEADERS = install.h console.h

# let automoc handle all of the meta source files (moc)
METASOURCES = AUTO

# the application source, library search path, and link libraries
kdpkg_install_SOURCES = main.cpp install.cpp installdialog.ui process.cpp  console.cpp consoledialog.ui
kdpkg_install_LDFLAGS = $(KDE_RPATH) $(all_libraries) $(LIB_QT) -lDCOP $(LIB_KDECORE) $(LIB_KDEUI) -lkdefx $(LIB_KIO) -lktexteditor -lkio
kdpkg_install_LDADD = $(LIB_KDEUI)


# application
xdg_apps_DATA = kdpkg-install.desktop
bin_PROGRAMS = kdpkg-install

sharedir = $(pkgdatadir)
install-data-local:
	$(mkinstalldirs) $(DESTDIR)$(sharedir)
	cp -aR $(srcdir)/icons $(DESTDIR)$(sharedir)/
	cp -aR $(srcdir)/sh $(DESTDIR)$(sharedir)/



# translation
messages: rc.cpp
	$(EXTRACTRC) `find . -name \*.ui -o -name \*.rc` > rc.cpp
	$(XGETTEXT) *.cpp -o $(podir)/kdpkg-install.pot