[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Makefile error handling



I was curious why there is no '-' in front of some commands in 
ddp/manuals.sgml/Makefile:

___ (NOW) ___
$(SUBDIRS):
        $(MAKE) -C $@

$(SUBDIRS-publish):
        $(MAKE) -C $(subst -publish,,$@) publish $(publish_args)

$(SUBDIRS-clean):
        $(MAKE) -C $(subst -clean,,$@) clean

___ (WHY NOT THIS) ___
$(SUBDIRS):
        -$(MAKE) -C $@

$(SUBDIRS-publish):
        -$(MAKE) -C $(subst -publish,,$@) publish $(publish_args)

$(SUBDIRS-clean):
        -$(MAKE) -C $(subst -clean,,$@) clean

This way, even if one of the package is bad, it builds rest of them. 

Osamu :)
-- 
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+  Osamu Aoki <debian@aokiconsulting.com> @ Cupertino, CA USA         +



Reply to: