... | ... |
@@ -210,10 +210,15 @@ clean_doxygen: |
210 | 210 |
TAGS: |
211 | 211 |
$(MKTAGS) |
212 | 212 |
|
213 |
+ |
|
214 |
+ |
|
213 | 215 |
ifeq (,$(MAKECMDGOALS)) |
214 | 216 |
-include $(depends) |
217 |
+else |
|
218 |
+ifeq (,$(strip $(nodep_targets))) |
|
219 |
+include Makefile.targets |
|
215 | 220 |
endif |
216 |
-ifneq (,$(filter-out clean proper distclean realclean mantainer-clean TAGS \ |
|
217 |
- tar modules, $(MAKECMDGOALS))) |
|
221 |
+ifneq (,$(filter-out $(nodep_targets),$(MAKECMDGOALS))) |
|
218 | 222 |
-include $(depends) |
219 | 223 |
endif |
224 |
+endif # ifeq (,$(MAKECMDGOALS)) |
220 | 225 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,29 @@ |
1 |
+ |
|
2 |
+# |
|
3 |
+# $Id$ |
|
4 |
+# |
|
5 |
+# |
|
6 |
+# Makefile targets that should be treated specially, |
|
7 |
+# e.g.: non obj/executable affecting targets => don't build dependencies for |
|
8 |
+# them or don't try any action that would be useful only for generating |
|
9 |
+# actual code |
|
10 |
+# |
|
11 |
+# History: |
|
12 |
+# -------- |
|
13 |
+# 2008-06-26 initial version (andrei) |
|
14 |
+# |
|
15 |
+ |
|
16 |
+clean_targets:= clean proper distclean realclean mantainer-clean clean_libs |
|
17 |
+doc_targets:= modules-doc modules-readme README modules-man man \ |
|
18 |
+ install-doc install-modules-doc install-man |
|
19 |
+# auxiliary: maintance, debugging, etc. (don't affect code/objects) |
|
20 |
+aux_targets:= TAGS tar dist print-modules dbg dbinstall \ |
|
21 |
+ librpath.lst makecfg.lst |
|
22 |
+# other targets that don't produce code in the current directory ("external") |
|
23 |
+ext_targets:= modules libs utils \ |
|
24 |
+ install-cfg install-modules install-utils install-modules-all \ |
|
25 |
+ install-share |
|
26 |
+ |
|
27 |
+# all the targets that don't require code dependecies in the current dir. |
|
28 |
+nodep_targets:= $(clean_targets) $(doc_targets) $(aux_targets) $(ext_targets) |
|
29 |
+ |