2005-11-06 00:15:35 +00:00
|
|
|
# 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 $@ $<
|
2005-11-24 21:45:44 +00:00
|
|
|
if HAVE_QT4
|
|
|
|
../tools/qgis-qt3to4.pl -uic $@
|
|
|
|
endif
|
2005-11-06 00:15:35 +00:00
|
|
|
|
2005-11-24 21:45:44 +00:00
|
|
|
if !NO_UIC_IMPLEMENTATIONS
|
2005-11-06 00:15:35 +00:00
|
|
|
%.cpp: %.ui
|
|
|
|
$(UIC) -o $@ -impl $*.h $<
|
2005-11-24 21:45:44 +00:00
|
|
|
endif
|
2005-11-06 00:15:35 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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)
|
|
|
|
|
2005-11-24 21:45:44 +00:00
|
|
|
CLEANFILES = $(BUILT_SOURCES)
|
|
|
|
|
|
|
|
EXTRA_DIST = $(qgis_help_UIC) icon.xpm
|
2005-11-06 00:15:35 +00:00
|
|
|
|
|
|
|
# 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
|