Subversion Repositories OpenARM Single-board Computer

Rev

Rev 151 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 151 Rev 154
Line 1... Line -...
1
# its handy to have all rule templates in one place
-
 
2
#
1
#
3
2
# its handy to have all rule templates in one place
4
POSTHOOK	= "$(TOPDIR)/../../scripts/create-symbolic-links.sh"
3
#
5
POSTITEMHOOK	= "$(TOPDIR)/../../scripts/create-symbolic-links.sh"
4
6
POSTITEMHOOKARG	= "update"
5
POSTHOOK	= "$(TOPDIR)/../../scripts/create-symbolic-links.sh"
7
6
POSTITEMHOOK	= "$(TOPDIR)/../../scripts/create-symbolic-links.sh"
8
all: $(SYMS) post-all
7
POSTITEMHOOKARG	= "update"
9
	@for i in $(SUBDIRS); do $(MAKE) -C $$i; done
8
-
 
9
# i think postitemhook isnt needed now, because all work could be done on post-dir hook
-
 
10
10
11
all: $(SYMS) .posthook-stamp
11
post-all:
12
	@for i in $(SUBDIRS); do $(MAKE) -C $$i SUBDIR=$(SUBDIR)/$$i; done
12
	if [ "x$(POSTHOOK)" != "x" -a  -e "$(POSTHOOK)" -a -x "$(POSTHOOK)" ]; then "$(POSTHOOK)";  fi
13
13
14
.posthook-stamp: $(SYMS)
14
clean:
15
	if [ "x$(POSTHOOK)" != "x" -a  -e "$(POSTHOOK)" -a -x "$(POSTHOOK)" ]; then export ITEMS="$^"; export TOPDIR=$(TOPDIR); export SYMDIR=$(SUBDIR); "$(POSTHOOK)";  fi
-
 
16
	touch .posthook-stamp
15
	@for i in $(SUBDIRS); do $(MAKE) -C $$i $@; done
17
16
	@if [ "x$(SYMS)" != "x" ]; then echo -e "\nRemoving $(SYMS)\n"; rm $(SYMS); fi
18
clean:
17
19
	@for i in $(SUBDIRS); do $(MAKE) -C $$i $@; done
18
%.sym: %.symdef
20
	@if [ "x$(SYMS)" != "x" ]; then echo -e "\nRemoving $(SYMS)\n"; rm $(SYMS) 2>/dev/null; fi
-
 
21
	@if [ -e .posthook-stamp ]; then rm .posthook-stamp 2>/dev/null; fi
19
	$(TOPDIR)/../../scripts/djboxsym $^ > $@
22
20
	if [ "x$(POSTITEMHOOK)" != "x" -a  -e "$(POSTITEMHOOK)" -a -x "$(POSTITEMHOOK)" ]; then export MAKE_ITEM=$@; export MAKE_SRC=$^; "$(POSTITEMHOOK)" "$(POSTITEMHOOKARG)"; fi
23
%.sym: %.symdef
21
24
	$(TOPDIR)/../../scripts/djboxsym $^ > $@ 
22
25
	@#if [ "x$(POSTITEMHOOK)" != "x" -a  -e "$(POSTITEMHOOK)" -a -x "$(POSTITEMHOOK)" ]; then export MAKE_ITEM=$@; export MAKE_SRC=$^; "$(POSTITEMHOOK)" "$(POSTITEMHOOKARG)"; fi
23
26
24
27
25
28