QGIS/helpviewer/Makefile.am
morb_au 04a72d5831 qgis/helpviewer should now be compilable under Qt4; Makefile.am more closely follows (e.g.) qgis/plugins/grass, which makes "make clean" work properly.
After this commit you should re-configure qgis, make clean in qgis/helpviewer then build as normal.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@4266 c8812cc2-4d05-0410-92ff-de0c093fc19c
2005-11-24 21:45:44 +00:00

70 lines
1.6 KiB
Makefile

# Copyright (C) 2005 Gary Sherman gsherman at mrcc dot com
#
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# $Id$
bin_PROGRAMS = qgis_help
PKGDATAPATH=-DPKGDATAPATH=\"$(pkgdatadir)\"
%.moc.cpp: %.h
$(MOC) -o $@ $<
%.h: %.ui
$(UIC) -o $@ $<
if HAVE_QT4
../tools/qgis-qt3to4.pl -uic $@
endif
if !NO_UIC_IMPLEMENTATIONS
%.cpp: %.ui
$(UIC) -o $@ -impl $*.h $<
endif
qgis_help_MOC = qgshelpserver.moc.cpp \
qgshelpviewer.moc.cpp \
qgshelpviewerbase.moc.cpp
qgis_help_UI = qgshelpviewerbase.h \
qgshelpviewerbase.cpp
qgis_help_UIC = qgshelpviewerbase.ui
qgis_help_SOURCES = main.cpp \
qgshelpserver.h \
qgshelpserver.cpp \
qgshelpviewer.h \
qgshelpviewer.cpp \
$(qgis_help_UI) \
$(qgis_help_MOC)
BUILT_SOURCES = $(qgis_help_MOC) $(qgis_help_UI)
qgis_help_LDADD = $(LDADD) $(QT_LDADD) -lsqlite3
qgis_help_CXXFLAGS = $(CXXFLAGS) $(EXTRA_CXXFLAGS) $(QT_CXXFLAGS) $(DEBUG_QGIS) $(PKGDATAPATH)
CLEANFILES = $(BUILT_SOURCES)
EXTRA_DIST = $(qgis_help_UIC) icon.xpm
# Qt/Mac app needs to be inside a bundle to function correctly
MACBINDIR = $(bindir)/qgis_help.app/Contents/MacOS
install-exec-hook:
if HAVE_QTMAC
$(mkinstalldirs) $(MACBINDIR)
mv $(bindir)/qgis_help $(MACBINDIR)
endif