Makefile: Apparently Algol 68 Genie now has a compiler. Let's use it.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 1 Apr 2013 15:25:51 +0000 (16:25 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 1 Apr 2013 17:17:56 +0000 (18:17 +0100)
I don't know how to get it to write its output to a particular place so
let it do its thing and then move it where we want it.

Makefile

index 226c975..79af754 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -201,17 +201,14 @@ erlang-fringe:
 ###--------------------------------------------------------------------------
 ### Algol 68.
 
-ALGOL68                         = /usr/local/bin/a68g
+A68G                    = /usr/local/bin/a68g
 
 LANGS                  += algol68
 TARGETS                        += algol68-fringe
 SOURCES                        += algol68-fringe.a68
 
 algol68-fringe: algol68-fringe.a68
-       $(call v_echo,GENSH){ echo '#! $(ALGOL68) --script';            \
-         cat $<;                                                       \
-       } >$@.new
-       $(V_HIDE)chmod +x $@.new && mv $@.new $@
+       $(call v_echo,A68)$(A68G) --compile -O2 $< && mv $@.sh $@
 
 ###--------------------------------------------------------------------------
 ### Dylan.