-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
55 lines (32 loc) · 863 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Toplevel makefile for etos v2.4
SUBDIRS = compiler bench bin
INSTALL_DIR = `pwd`/bin/
GSC = time gsc
.SUFFIXES:
all:
all-pre:
all-post:
install-pre:
install-post:
clean-pre:
clean-post:
rm -f *~ hw.o* hw.scm
all-recursive install-recursive clean-recursive:
for subdir in $(SUBDIRS); do \
target=`echo $@ | sed 's/-recursive//'`; \
install_dir="$(INSTALL_DIR)"; \
echo making $$target in $$subdir; \
(cd $$subdir && INSTALL_DIR="$$install_dir" GSC="$(GSC)" $(MAKE) $$target) || exit 1; \
done
all: all-post
all-post: all-recursive
all-recursive: all-pre
install: install-post
install-post: install-recursive
install-recursive: install-pre
clean: clean-post
clean-post: clean-recursive
clean-recursive: clean-pre
bench: fake_target
(cd bench && INSTALL_DIR="$$install_dir" GSC="$(GSC)" $(MAKE) bench) || exit 1
fake_target: