# HG changeset patch # User nenolod # Date 1138926049 28800 # Node ID 572cbb4c25ba916ecfde441e3c2890b57fa63de0 # Parent 07e77b80469730ea25228fdecb5c2afb94c99ffb [svn] more fixes diff -r 07e77b804697 -r 572cbb4c25ba mk/objective.mk --- a/mk/objective.mk Thu Feb 02 16:15:10 2006 -0800 +++ b/mk/objective.mk Thu Feb 02 16:20:49 2006 -0800 @@ -3,8 +3,10 @@ OBJECTIVE_DIRECTORIES = none OBJECTIVE_LIBS = none +OBJECTIVE_LIBS_NOINST = none OBJECTIVE_BINS = none SUBDIRS = none + CFLAGS += -DHAVE_CONFIG_H default: all @@ -58,21 +60,27 @@ echo "[finished subobjective: $$i]"; \ done; \ fi - @for i in $(OBJECTIVE_LIBS); do \ - echo "[building library objective: $$i]"; \ - $(MAKE) $$i; \ - echo "[finished library objective: $$i]"; \ - done - @for i in $(OBJECTIVE_LIBS_NOINST); do \ - echo "[building library dependency: $$i]"; \ - $(MAKE) $$i; \ - echo "[finished library dependency: $$i]"; \ - done - @for i in $(OBJECTIVE_BINS); do \ - echo "[building binary objective: $$i]"; \ - $(MAKE) $$i; \ - echo "[finished binary objective: $$i]"; \ - done + @if test "$(OBJECTIVE_LIBS)" != "none"; then \ + for i in $(OBJECTIVE_LIBS); do \ + echo "[building library objective: $$i]"; \ + $(MAKE) $$i; \ + echo "[finished library objective: $$i]"; \ + done; \ + fi + @if test "$(OBJECTIVE_LIBS_NOINST)" != "none"; then \ + for i in $(OBJECTIVE_LIBS_NOINST); do \ + echo "[building library dependency: $$i]"; \ + $(MAKE) $$i; \ + echo "[finished library dependency: $$i]"; \ + done; \ + fi + @if test "$(OBJECTIVE_BINS)" != "none"; then \ + for i in $(OBJECTIVE_BINS); do \ + echo "[building binary objective: $$i]"; \ + $(MAKE) $$i; \ + echo "[finished binary objective: $$i]"; \ + done; \ + fi $(MAKE) build-posthook @echo "[all objectives built]"