Skip to content

Commit

Permalink
- don't try to build dependencies or lex/yacc stuff unless it's really
Browse files Browse the repository at this point in the history
 necessary (makefile target != clean,doc,modules, a.s.o ; for the complete
 long list see Makefile.targets)
  • Loading branch information
poandrei committed Jun 26, 2008
1 parent ee03be7 commit 6567f6c
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Makefile.rules
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,15 @@ clean_doxygen:
TAGS:
$(MKTAGS)



ifeq (,$(MAKECMDGOALS))
-include $(depends)
else
ifeq (,$(strip $(nodep_targets)))
include Makefile.targets
endif
ifneq (,$(filter-out clean proper distclean realclean mantainer-clean TAGS \
tar modules, $(MAKECMDGOALS)))
ifneq (,$(filter-out $(nodep_targets),$(MAKECMDGOALS)))
-include $(depends)
endif
endif # ifeq (,$(MAKECMDGOALS))
29 changes: 29 additions & 0 deletions Makefile.targets
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@

#
# $Id$
#
#
# Makefile targets that should be treated specially,
# e.g.: non obj/executable affecting targets => don't build dependencies for
# them or don't try any action that would be useful only for generating
# actual code
#
# History:
# --------
# 2008-06-26 initial version (andrei)
#

clean_targets:= clean proper distclean realclean mantainer-clean clean_libs
doc_targets:= modules-doc modules-readme README modules-man man \
install-doc install-modules-doc install-man
# auxiliary: maintance, debugging, etc. (don't affect code/objects)
aux_targets:= TAGS tar dist print-modules dbg dbinstall \
librpath.lst makecfg.lst
# other targets that don't produce code in the current directory ("external")
ext_targets:= modules libs utils \
install-cfg install-modules install-utils install-modules-all \
install-share

# all the targets that don't require code dependecies in the current dir.
nodep_targets:= $(clean_targets) $(doc_targets) $(aux_targets) $(ext_targets)

0 comments on commit 6567f6c

Please sign in to comment.