summaryrefslogtreecommitdiffstats
path: root/doc/examples/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'doc/examples/Makefile')
-rw-r--r--doc/examples/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/examples/Makefile b/doc/examples/Makefile
index 277d4b0..9792e1f 100644
--- a/doc/examples/Makefile
+++ b/doc/examples/Makefile
@@ -28,6 +28,9 @@ PROGS += $(DOC_EXAMPLES)
EXAMPLES_FILES := $(wildcard $(SRC_PATH)/doc/examples/*.c) $(SRC_PATH)/doc/examples/README
EXAMPLE_MAKEFILE := $(SRC_PATH)/doc/examples/Makefile
+$(foreach P,$(DOC_EXAMPLES),$(eval OBJS-$(P:%$(PROGSSUF)$(EXESUF)=%) = $(P:%$(PROGSSUF)$(EXESUF)=%).o))
+$(DOC_EXAMPLES): %$(PROGSSUF)$(EXESUF): %.o
+
examples: $(DOC_EXAMPLES)
$(DOC_EXAMPLES:%$(EXESUF)=%.o): | doc/examples
@@ -41,4 +44,6 @@ examplesclean:
docclean:: examplesclean
+-include $(wildcard $(DOC_EXAMPLES:%$(PROGSSUF)$(EXESUF)=%.d))
+
.PHONY: examples
OpenPOWER on IntegriCloud