1 ## Process this file with automake to generate Makefile.in
3 # Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010,
4 # 2011 Free Software Foundation, Inc.
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 3 of the License, or
9 # (at your option) any later version.
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
26 -DGNASHBINDIR=\"${bindir}\"
28 plugindir = $(KDE4_PLUGINDIR)
29 kde_servicesdir = $(KDE4_SERVICESDIR)
30 kde_rcdir = $(KDE4_APPSDATADIR)
31 #$(prefix)/share/apps/klash
32 kde_appsdatadir = $(KDE4_APPSDATADIR)
33 #$(prefix)/share/apps/klash
34 kde_configdir = $(KDE4_CONFIGDIR)
35 #$(prefix)/share/config
37 plugin_LTLIBRARIES= libklashpart.la
39 libklashpart_la_SOURCES = klash_part.cpp klash_part.h
40 libklashpart_la_DEPENDENCIES = klash_part.moc
41 if PLUGIN_LINK_UNDEFINED
42 libklashpart_la_LDFLAGS = -avoid-version -L$(plugindir) $(KDE4_LIBS) $(QT4_LIBS)
44 libklashpart_la_LDFLAGS = -module -avoid-version -L$(plugindir) $(KDE4_LIBS) $(QT4_LIBS)
47 dist_kde_services_DATA = klash_part.desktop
48 dist_kde_rc_DATA = klashpartui.rc
49 dist_kde_appsdata_DATA = pluginsinfo
50 #dist_kde_config_DATA = klashrc
52 # DIST_COMMON = $(dist_kde_appsdata_DATA) $(dist_kde_services_DATA) $(dist_kde_rc_DATA)
54 BUILT_SOURCES = klash_part.moc
55 CLEANFILES = klash_part.moc
57 klash_part.moc: $(srcdir)/klash_part.h
58 @if test x"$(MOC4)" != x; then \
59 echo "Generating MOC 4.x file..."; \
60 $(MOC4) $(srcdir)/klash_part.h -o klash_part.moc; \
62 echo "WARNING: Install QT 4.x moc tool! Linking to default MOC file"; \
63 ln -s $(srcdir)/klash_part.moc.in klash_part.moc; \
66 install-data: $(dist_kde_services_DATA)
67 test -d $(DESTDIR)$(kde_servicesdir) || $(mkinstalldirs) $(DESTDIR)$(kde_servicesdir)
68 $(INSTALL) $(dist_kde_services_DATA) $(DESTDIR)$(kde_servicesdir)
71 @if test ! -w $(DESTDIR)$(kde_appsdatadir) -o ! -w $(DESTDIR)$(kde_servicesdir); then \
72 if test -d $(DESTDIR)$(kde_appsdatadir); then \
73 echo "WARNING: Improper permissions for $(DESTDIR)$(kde_appsdatadir)!"; \
74 echo "You probably need to be root"; \
75 echo "Or configure with --with-kde-prefix= set to a writable directory"; \
78 if test -d $(DESTDIR)$(kde_servicesdir) -a -d $(DESTDIR)$(kde_appsdatadir); then \
79 echo "WARNING: Improper permissions for $(DESTDIR)$(kde_appsdatadir) and $(DESTDIR)$(kde_servicesdir)!"; \
80 echo "You probably need to be root"; \
81 echo "Or configure with --with-kde-prefix= set to a writable directory"; \
86 install-data-am: $(dist_kde_services_DATA) $(dist_kde_appsdata_DATA)
87 test -d $(DESTDIR)$(kde_servicesdir) || $(mkinstalldirs) $(DESTDIR)$(kde_servicesdir)
88 $(INSTALL) $(srcdir)/$(dist_kde_services_DATA) $(DESTDIR)$(kde_servicesdir)
89 test -d $(DESTDIR)$(kde_appsdatadir) || $(mkinstalldirs) $(DESTDIR)$(kde_appsdatadir)
90 $(INSTALL) $(srcdir)/$(dist_kde_appsdata_DATA) $(DESTDIR)$(kde_appsdatadir)
92 install-pluginLTLIBRARIES: $(plugin_LTLIBRARIES)
93 @echo "Nothing to install here now."
94 @echo "Use \"make install-plugin\" to install the KDE plugin to $(DESTDIR)$(plugindir)."
96 install-plugin install-plugins: test_perms $(plugin_LTLIBRARIES) $(dist_kde_services_DATA) \
97 install-dist_kde_appsdataDATA install-dist_kde_rcDATA \
98 install-dist_kde_servicesDATA
99 test -d $(DESTDIR)$(plugindir) || $(mkinstalldirs) $(DESTDIR)$(plugindir)
100 $(LIBTOOL) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $(plugin_LTLIBRARIES) $(DESTDIR)$(plugindir)
102 uninstall-pluginLTLIBRARIES: $(plugin_LTLIBRARIES)
103 $(RM) -f $(DESTDIR)$(plugindir)/libklashpart.so
104 $(RM) -f $(DESTDIR)$(plugindir)/libklashpart.la
105 $(RM) -f $(DESTDIR)$(plugindir)/libklashpart.a
111 .PHONY : install-plugins install-plugin test_perms