cl-fringe.lisp: Abstract out the startup stuff.
[fringe] / Makefile
index 6d4455d..d08ed09 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -94,13 +94,16 @@ icon-fringe: icon-fringe.icn
 ###--------------------------------------------------------------------------
 ### Common Lisp.
 
-CLEANFILES             += *.core
+CLEANFILES             += *.core *.fasl
+
+.SUFFIXES: .lisp .fasl
+.lisp.fasl:; sbcl --eval '(quit :unix-status (if (compile-file "$<") 0 1))'
 
 LANGS                  += cl
 SOURCES                        += cl-fringe.lisp
-cl-fringe: cl-fringe.lisp
-##     cl-launch -R -o $@ -f `pwd`/$^  -- slow to start
-       cl-launch -o $@ -f `pwd`/$^ +I -r launch -d $@.core
+cl-fringe: cl-fringe.fasl
+       cp $< $@.new && chmod +x $@.new && mv $@.new $@
+##     cl-launch -o $@ -f `pwd`/$^ +I -r launch -d $@.core
 
 ###--------------------------------------------------------------------------
 ### F#.