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-top install-bin install-headers \
29 install: install-top install-local install-recursive
30 install-local
: install-bin install-headers
33 @echo
-e
"\\n... Installing from top-level"
35 install-bin
: eruntime-config
36 @
dir='$(DESTDIR)$(bindir)'; \
37 $(INSTALL_DIR
) $(DESTDIR
)$(bindir) || exit
1; \
38 list
='$^'; for bin in
$$list; do \
39 echo
"Installing $(DESTDIR)$(bindir)/$$bin..."; \
40 $(INSTALL_BIN
) $$bin $$dir || exit
1; \
44 @
$(INSTALL_DIR
) $(DESTDIR
)$(includedir)/eruntime || exit
1; \
45 list
="$$(echo include/eruntime/*.h)"; \
46 [ "$$list" != 'include/eruntime/*.h' ] && { \
47 for hdr in
$$list; do \
48 echo
"Installing $(DESTDIR)$(includedir)/$$hdr..."; \
49 $(INSTALL_DATA
) $$hdr $(DESTDIR
)$(includedir)/eruntime \
54 install-recursive
: $(SUBDIRS
)
55 @list
='$^'; for
dir in
$$list; do \
56 echo
-e
"\\n... Installing from $$dir"; \
57 $(SUBMAKE
) -C
$$dir install || exit
1; \
62 @echo
-e
"\\n... Building tests"; \
63 $(SUBMAKE
) -C tests
all || exit
1; \
64 echo
-e
"\\n... Running tests"; \
65 $(SUBMAKE
) -C tests
check
67 .PHONY
: clean clean-recursive
68 clean: clean-recursive
70 clean-recursive
: $(CLEANDIRS
)
72 for
dir in
$$list; do \
73 echo
-e
"\\n... Cleaning $$dir"; \
74 $(SUBMAKE
) -C
$$dir clean || exit
1; \
77 # vim: ts=8 sw=8 noet fdm=marker tw=80