} >$@.new
$(V_HIDE)chmod +x $@.new && mv $@.new $@
+###--------------------------------------------------------------------------
+### Forth.
+
+LANGS += forth
+TARGETS += forth-fringe
+SOURCES += forth-fringe.fth
+forth-fringe: forth-fringe.fth
+ $(call v_echo,FORTHI)gforthmi $@ $<
+
+###--------------------------------------------------------------------------
+### Erlang.
+
+ERLC = erlc
+CLEANFILES += *.beam erl_crash.dump
+.SUFFIXES: .erl .beam
+.erl.beam:; $(call v_echo,ERLC)$(ERLC) $(ERLCFLAGS) $<
+
+LANGS += erlang
+TARGETS += erlang-fringe.beam
+SOURCES += erlang-fringe.erl
+erlang-fringe:
+ $(call v_echo,GENSH){ echo '#! /bin/sh'; \
+ echo 'exec erl -pa . -noshell -run erlang-fringe main -extra "$$@"'; \
+ } >$@.new
+ $(V_HIDE)chmod +x $@.new && mv $@.new $@
+
###----- That's all, folks --------------------------------------------------
all:: $(TARGETS)