From 0bf79e216f312010b78c81904e12b2feadcdaa14 Mon Sep 17 00:00:00 2001 From: Anton Lundin Date: Mon, 7 Apr 2014 14:25:03 +0200 Subject: Use the ENABLE_PLANNER macro in the manual too This introduces ifdef control structures in the manual too, so we can continue to develop both the planner and its manual, until its ready for release. Signed-off-by: Anton Lundin Signed-off-by: Dirk Hohndel --- subsurface.pro | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'subsurface.pro') diff --git a/subsurface.pro b/subsurface.pro index 6d13c1de8..2eaed32f5 100644 --- a/subsurface.pro +++ b/subsurface.pro @@ -15,6 +15,11 @@ else: TARGET = subsurface VERSION = 4.0.2 +# enable or disable the dive planner +planner { + DEFINES += ENABLE_PLANNER +} + HEADERS = \ color.h \ deco.h \ @@ -226,7 +231,10 @@ QTTRANSLATIONS = \ qt_sv.qm \ qt_zh_TW.qm -doc.commands += $(CHK_DIR_EXISTS) $$OUT_PWD/Documentation || $(MKDIR) $$OUT_PWD/Documentation $$escape_expand(\\n\\t)$(MAKE) -C $$PWD/Documentation OUT=$$OUT_PWD/Documentation/ doc +# Should we enable the planner sections in the manual? +planner: ENABLE_PLANNER=1 +else: ENABLE_PLANNER=0 +doc.commands += $(CHK_DIR_EXISTS) $$OUT_PWD/Documentation || $(MKDIR) $$OUT_PWD/Documentation $$escape_expand(\\n\\t)$(MAKE) -C $$PWD/Documentation OUT=$$OUT_PWD/Documentation/ ENABLE_PLANNER=$$ENABLE_PLANNER doc all.depends += doc QMAKE_EXTRA_TARGETS += doc all @@ -267,10 +275,5 @@ QMAKE_INFO_PLIST = packaging/macosx/Info.plist.in OTHER_FILES += $$DESKTOPFILE $$ICON $$MANPAGE $$XSLT_FILES $$DOC_FILES $$MARBLEDIR \ $$QMAKE_INFO_PLIST -# enable or disable the dive planner -planner { - DEFINES += ENABLE_PLANNER -} - include(subsurface-gen-version.pri) include(subsurface-install.pri) -- cgit v1.2.3-70-g09d2