6 CLEANDIRS
= $(SUBDIRS
) tests
8 .PHONY
: all all-recursive
11 all-recursive
: $(SUBDIRS
)
12 @list
='$^'; for
dir in
$$list; do \
13 echo
-e
"\\n... Building $$dir"; \
14 $(SUBMAKE
) -C
$$dir || exit
1; \
17 .PHONY
: deps deps-recursive
20 deps-recursive
: $(SUBDIRS
)
21 @list
='$^'; for
dir in
$$list; do \
22 echo
-e
"\\n... Generating dependency information for $$dir"; \
23 $(SUBMAKE
) -C
$$dir deps || exit
1; \
26 .PHONY
: install install-local install-recursive
28 install: install-top install-local install-recursive
29 install-local
: install-bin
32 @echo
-e
"\\n... Installing from top-level"
34 install-bin
: eruntime-config
35 @
dir='$(DESTDIR)$(bindir)'; \
36 $(INSTALL_DIR
) $(DESTDIR
)$(bindir) || exit
1; \
37 list
='$^'; for bin in
$$list; do \
38 echo
"Installing $$bin..."; \
39 $(INSTALL_BIN
) $$bin $$dir || exit
1; \
42 install-recursive
: $(SUBDIRS
)
43 @list
='$^'; for
dir in
$$list; do \
44 echo
-e
"\\n... Installing from $$dir"; \
45 $(SUBMAKE
) -C
$$dir install || exit
1; \
50 @echo
-e
"\\n... Building tests"; \
51 $(SUBMAKE
) -C tests
all || exit
1; \
52 echo
-e
"\\n... Running tests"; \
53 $(SUBMAKE
) -C tests
check
55 .PHONY
: clean clean-recursive
56 clean: clean-recursive
58 clean-recursive
: $(CLEANDIRS
)
60 for
dir in
$$list; do \
61 echo
-e
"\\n... Cleaning $$dir"; \
62 $(SUBMAKE
) -C
$$dir clean || exit
1; \
65 # vim: ts=8 sw=8 noet fdm=marker tw=80