qmake build system issue
Thiago Macieira
thiago at macieira.org
Thu Nov 14 13:26:50 UTC 2013
On quinta-feira, 14 de novembro de 2013 21:45:22, Martin Gysel wrote:
> Hi
>
> while trying to write an gentoo ebuild for the qt version I came across
> a build system issue. running qmake on a clean checkout doesn't generate
> an install rule for files which do not exist at that time. this affects
> the install rule for the html documetation as the html file is generated
> during building.
>
> here's a snippet from the Makefile generated after a clean checkout
> install_doc: first FORCE
> @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/$(DOCDIR)/ || $(MKDIR)
> $(INSTALL_ROOT)/$(DOCDIR)/
>
> $(MAKE) -C /home/bearsh/workspace/subsurface/Documentation
> OUT=/home/bearsh/workspace/subsurface/Documentation/ doc
> -$(INSTALL_DIR)
> /home/bearsh/workspace/subsurface/Documentation/images
> $(INSTALL_ROOT)/$(DOCDIR)/
>
> once I call make or create the empty file
> 'Documentation/user-manual.html' the Makefile looks like this:
> install_marbledir: first FORCE
> @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/$(DATADIR)/subsurface/ ||
> $(MKDIR) $(INSTALL_ROOT)/$(DATADIR)/subsurface/
> -$(INSTALL_DIR)
> /home/bearsh/workspace/subsurface/marbledata/maps
> $(INSTALL_ROOT)/$(DATADIR)/subsurface/
> -$(INSTALL_DIR)
> /home/bearsh/workspace/subsurface/marbledata/bitmaps
> $(INSTALL_ROOT)/$(DATADIR)/subsurface/
That's the Marble maps section.
>
> after some googling it seems to be a known or expected behaviour of qmake :(
Indeed.
> any ideas how to solve this issue? one *dirty* way would be to add an
> empty user-manual.html to git and put it also into .gitignore or we add
> a install target to the doc Makefile or we simply remove the installing
> of any doc file, so it's up to the packager to 'install' it or not.
This patch should help. Can you confirm so Dirk can apply it?
--
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Make-qmake-generate-the-install-rule-for-user-manual.patch
Type: text/x-patch
Size: 1540 bytes
Desc: not available
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20131114/b03b1d14/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20131114/b03b1d14/attachment.sig>
More information about the subsurface
mailing list