summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2016-12-24 09:41:04 +0100
committerRicardo Wurmus <rekado@elephly.net>2016-12-24 09:41:04 +0100
commit85f94c72a16c5f70301dd8db04cde9de2d7dd270 (patch)
tree52990ef33e9ae74f55a5346ce89a80b66de51900 /Makefile
parent562993f44e1f48880a6863c95e940a8c8503392c (diff)
Add simple MakefileHEADmaster
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile52
1 files changed, 52 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..c5df905
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,52 @@
+PREFIX=/
+SHARE=$(PREFIX)/share/yale-haskell
+DIRS= \
+ cfn \
+ com \
+ flic \
+ derived \
+ command-interface \
+ type \
+ printers \
+ cl-support \
+ progs/prelude \
+ csys \
+ prec \
+ depend \
+ import-export \
+ runtime \
+ backend \
+ util \
+ parser \
+ top \
+ tdecl \
+ support \
+ ast
+
+
+build:
+ sh ./build-clisp-haskell.bash
+
+install-doc:
+ install -d $(SHARE)/doc
+ cp -ar ./doc $(SHARE)
+
+install-examples:
+ install -d $(SHARE)
+ cp -ar ./progs/demo $(SHARE)
+
+install-lisp:
+ for dir in $(DIRS); do \
+ install -d $(SHARE)/$$dir; \
+ cp -ar $$dir/clisp $(SHARE)/$$dir; \
+ done
+ install command-interface-help $(SHARE)
+
+install: install-doc install-lisp install-examples
+ install -d $(PREFIX)/bin
+ install ./bin/clisp-haskell $(PREFIX)/bin
+ echo "#!/bin/sh" > $(PREFIX)/bin/yale-haskell
+ echo -n "export HASKELL=" >> $(PREFIX)/bin/yale-haskell
+ echo $(SHARE) >> $(PREFIX)/bin/yale-haskell
+ echo $(PREFIX)/bin/clisp-haskell >> $(PREFIX)/bin/yale-haskell
+ chmod +x $(PREFIX)/bin/yale-haskell