Rev 151 | Blame | Compare with Previous | Last modification | View Log | RSS feed
#
# its handy to have all rule templates in one place
#
POSTHOOK = "$(TOPDIR)/../../scripts/create-symbolic-links.sh"
POSTITEMHOOK = "$(TOPDIR)/../../scripts/create-symbolic-links.sh"
POSTITEMHOOKARG = "update"
# i think postitemhook isnt needed now, because all work could be done on post-dir hook
all: $(SYMS) .posthook-stamp
@for i in $(SUBDIRS); do $(MAKE) -C $$i SUBDIR=$(SUBDIR)/$$i; done
.posthook-stamp: $(SYMS)
if [ "x$(POSTHOOK)" != "x" -a -e "$(POSTHOOK)" -a -x "$(POSTHOOK)" ]; then export ITEMS="$^"; export TOPDIR=$(TOPDIR); export SYMDIR=$(SUBDIR); "$(POSTHOOK)"; fi
touch .posthook-stamp
clean:
@for i in $(SUBDIRS); do $(MAKE) -C $$i $@; done
@if [ "x$(SYMS)" != "x" ]; then echo -e "\nRemoving $(SYMS)\n"; rm $(SYMS) 2>/dev/null; fi
@if [ -e .posthook-stamp ]; then rm .posthook-stamp 2>/dev/null; fi
%.sym: %.symdef
$(TOPDIR)/../../scripts/djboxsym $^ > $@
@#if [ "x$(POSTITEMHOOK)" != "x" -a -e "$(POSTITEMHOOK)" -a -x "$(POSTITEMHOOK)" ]; then export MAKE_ITEM=$@; export MAKE_SRC=$^; "$(POSTITEMHOOK)" "$(POSTITEMHOOKARG)"; fi