mk: fix doc cleaning
authorThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 17 Oct 2014 15:00:53 +0000 (17:00 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 17 Oct 2014 15:44:06 +0000 (17:44 +0200)
With make 3.x, guides-% is matched instead of guides-%-clean.
Move the less specific target pattern (guides-%) at the end
to allow matching guides-%-clean first.

Reported-by: Bernard Iremonger <bernard.iremonger@intel.com>
Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
mk/rte.sdkdoc.mk

index 995daf3..dabc0d6 100644 (file)
@@ -70,11 +70,6 @@ api-html: api-html-clean
            doxygen -
        $(Q)$(RTE_SDK)/doc/api/doxy-html-custom.sh $(RTE_OUTPUT)/doc/html/api/doxygen.css
 
-guides-%:
-       @echo 'sphinx for guides...'
-       $(Q)$(RTE_SPHINX_BUILD) -b $* $(RTE_SPHINX_VERBOSE) \
-               -c $(RTE_SDK)/doc/guides $(RTE_SDK)/doc/guides $(RTE_OUTPUT)/doc/$*/guides
-
 .PHONY: api-html-clean
 api-html-clean:
        $(Q)rm -f $(RTE_OUTPUT)/doc/html/api/*
@@ -83,3 +78,8 @@ api-html-clean:
 guides-%-clean:
        $(Q)rm -rf $(RTE_OUTPUT)/doc/$*/guides
        $(Q)rmdir -p --ignore-fail-on-non-empty $(RTE_OUTPUT)/doc/$* 2>&- || true
+
+guides-%:
+       @echo 'sphinx for guides...'
+       $(Q)$(RTE_SPHINX_BUILD) -b $* $(RTE_SPHINX_VERBOSE) \
+               -c $(RTE_SDK)/doc/guides $(RTE_SDK)/doc/guides $(RTE_OUTPUT)/doc/$*/guides