summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPeter Sewell2017-02-05 11:27:49 +0000
committerPeter Sewell2017-02-05 11:27:49 +0000
commitbd384860e2778fe40e10aaf08cdea7d42dae6287 (patch)
treef1c88810d0acd8d6360a8b74d21aed689845884c /Makefile
parent081d3ac6a786fdc3df515de58af2ef25a25a5b58 (diff)
parent0f688281254997cb4ca3a6e82275c3751c43fe2c (diff)
Merge branch 'master' of bitbucket.org:Peter_Sewell/sail
Conflicts: language/manual.pdf
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile28
1 files changed, 17 insertions, 11 deletions
diff --git a/Makefile b/Makefile
index 038249f6..88f2903c 100644
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,7 @@
-.PHONY: all sail language clean archs
+.PHONY: all sail language clean archs apply_header
all: sail interpreter
-apply_header:
- headache -c etc/headache_config -h etc/mips_header `ls mips/*.sail`
- headache -c etc/headache_config -h etc/mips_header `ls cheri/*.sail`
- $(MAKE) -C arm apply_header
-
sail:
$(MAKE) -C src
ln -f -s src/sail.native sail
@@ -17,13 +12,24 @@ language:
interpreter:
$(MAKE) -C src interpreter
+archs:
+ for arch in arm mips cheri; do\
+ $(MAKE) -C "$$arch" || exit;\
+ done
+
+apply_header:
+ $(MAKE) clean
+ headache -c etc/headache_config -h etc/mips_header `ls mips/*.sail`
+ headache -c etc/headache_config -h etc/mips_header `ls cheri/*.sail`
+ headache -c etc/headache_config -h src/LICENCE `ls src/Makefile*`
+ headache -c etc/headache_config -h src/LICENCE `ls src/*.ml*`
+ headache -c etc/headache_config -h src/LICENCE `ls src/lem_interp/*.ml`
+ headache -c etc/headache_config -h src/LICENCE `ls src/lem_interp/*.lem`
+ $(MAKE) -C arm apply_header
+
clean:
for subdir in src arm ; do\
$(MAKE) -C "$$subdir" clean;\
done
- rm sail
+ -rm sail
-archs:
- for arch in arm mips cheri; do\
- $(MAKE) -C "$$arch" || exit;\
- done