build: Add <debug> make target 05/23305/2
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Tue, 18 Oct 2016 15:21:08 +0000 (17:21 +0200)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Tue, 18 Oct 2016 15:30:59 +0000 (17:30 +0200)
Pass `make debug` to Fuel@OPNFV build system.

debug requires Fuel@OPNFV submodules to be initialized, since
`f_repobuild` relies on fuel-mirror submodule.

Change-Id: Ia64a7d79143c00fc09076472ad346f0cdc20c2b5
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
Makefile

index b563440..9ba6d9c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -115,10 +115,12 @@ patches-import: .submodules-init .submodules-patched
        done
        @touch $@
 
-# Pass down clean/deepclean/build to Fuel@OPNFV
-.PHONY: clean
+# Pass down debug/clean/deepclean/build to Fuel@OPNFV
+.PHONY: clean debug
 clean: .submodules-init
-       $(MAKE) -e --no-print-directory -C ${F_BUILD_DIR} clean
+debug: fuel-patches-import
+clean debug:
+       $(MAKE) -e --no-print-directory -C ${F_BUILD_DIR} $@
 
 .PHONY: deepclean
 deepclean: clean