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