-
Notifications
You must be signed in to change notification settings - Fork 2
/
mkfile
48 lines (38 loc) · 917 Bytes
/
mkfile
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
<mkconfig
DIRS1=\
lib_core/collections lib_core/commons\
mk shell\
lib_parsing lex yacc\
macroprocessor\
formats/objects assembler\
formats/executables linker\
compiler \
version_control
# works only under plan9 for now:
DIRS2=lib_core/commons2 lib_system/plan9 lib_graphics windows
# works only from scratch:
DIRS3=kernel
DIRS=$DIRS1 #$DIRS2 #DIRS3
TESTDIRS=\
assembler/tests compiler/tests linker/tests \
mk/tests windows/tests \
lib_system/plan9/tests
all:V: all.directories
opt:V: opt.directories
depend:V: depend.directories
%.directories:V:
for(i in $DIRS) @{
echo $i/
cd $i
mk $MKFLAGS $stem
}
# alternate style to the %.directories trick; even simpler
clean nuke:V:
for(i in $DIRS $TESTDIRS) @{
cd $i
mk $MKFLAGS $target
}
SUBDIRS=$DIRS $TESTDIRS
# too many dupes for now (e.g., ast.ml in mutliple dirs)
graph:QV:
codegraph_build -symlinks -lang cmt -verbose .