QGIS/helpviewer/Makefile.am
2005-12-30 04:56:31 +00:00

59 lines
1.4 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 $@ $<
ui_%.h: %.ui
$(UIC) -o $@ $<
qgis_help_MOC = qgshelpserver.moc.cpp \
qgshelpviewer.moc.cpp
qgis_help_UI = ui_qgshelpviewerbase.h
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