Em dom 08 jun 2014, às 13:16:06, Thiago Macieira escreveu:
> This one I'll need to ssh into my Mac to take a look and test. We might be 
> able to trick qmake into adding the dependency by adding a new target to 
> QMAKE_EXTRA_TARGETS, with the target's name equal to the expected file name.

Like this. I've only tested on Linux.
-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
>From 10affe2de8aa3f6f90d22280547bee639cbbbd5b Mon Sep 17 00:00:00 2001
From: Thiago Macieira <thi...@macieira.org>
Date: Sun, 8 Jun 2014 13:22:19 -0400
Subject: [PATCH 1/1] Attempt at telling Makefile how to build the user manual

Signed-off-by: Thiago Macieira <thi...@macieira.org>
---
 subsurface.pro | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/subsurface.pro b/subsurface.pro
index f473070..03c19f8 100644
--- a/subsurface.pro
+++ b/subsurface.pro
@@ -236,9 +236,11 @@ QTTRANSLATIONS = \
 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
+all.depends += usermanual
 docclean.commands += $(MAKE) -C $$PWD/Documentation OUT=$$OUT_PWD/Documentation ENABLE_PLANNER=$$ENABLE_PLANNER clean
-QMAKE_EXTRA_TARGETS += doc docclean all
+usermanual.depends += doc
+usermanual.target = $$OUT_PWD/Documentation/user-manual.html
+QMAKE_EXTRA_TARGETS += doc docclean usermanual all
 CLEAN_DEPS += docclean
 
 marbledata.commands += $(CHK_DIR_EXISTS) $$OUT_PWD/marbledata || $(COPY_DIR) $$PWD/marbledata $$OUT_PWD
-- 
1.8.4.5

_______________________________________________
subsurface mailing list
subsurface@hohndel.org
http://lists.hohndel.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to