Re: override_dh_auto_configure not called
Mathieu Malaterre <mathieu.malaterre@gmail.com> writes:
> I am trying to only build doc as indep target. I have the following
> rules file (copy/paste from dh(1)):
> ...
> %:
> dh --parallel --with quilt --buildsystem=cmake $@
> override_dh_auto_configure:
> dh_auto_configure -- -DCMAKE_BUILD_TYPE:STRING=Release
> -DCMAKE_SKIP_RPATH:BOOL=ON
> build: build-arch build-indep ;
> build-indep:
> $(MAKE) doc
> build-arch:
> $(MAKE) all
> ...
You can't mix and match targets like that. You need to either use the
pattern rule and override system for all of a particular required target
like build, or you need to specify the commands inside the target and not
use the pattern rule (at least for that target).
Something like:
build-indep:
dh --parallel --with quilt --buildsystem=cmake --before dh_auto_build
$(MAKE) doc
dh --after dh_auto_build
build-arch:
dh --parallel --with quilt --buildsystem=cmake --before dh_auto_build
$(MAKE) all
dh --after dh_auto_build
may work (untested).
Note, however, that build-arch and build-indep aren't actually used by
anything, so unless you're just fixing this for manual invocations of
debian/rules, you need to instead hook into binary-arch and binary-indep
and stop building the package in the build rule.
--
Russ Allbery (rra@debian.org) <http://www.eyrie.org/~eagle/>
Reply to: