Rev 150 | Go to most recent revision | 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"
all: $(SYMS) post-all
@for i in $(SUBDIRS); do $(MAKE) -C $$i; done
post-all:
if [ "x$(POSTHOOK)" != "x" -a -e "$(POSTHOOK)" -a -x "$(POSTHOOK)" ]; then "$(POSTHOOK)"; fi
clean:
@for i in $(SUBDIRS); do $(MAKE) -C $$i $@; done
@if [ "x$(SYMS)" != "x" ]; then echo -e "\nRemoving $(SYMS)\n"; rm $(SYMS); 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