2014-04-18 07:23:07 +04:00
|
|
|
SOURCES_BASE = mal_readline.rb types.rb reader.rb printer.rb
|
2015-02-28 20:09:54 +03:00
|
|
|
SOURCES_LISP = env.rb core.rb stepA_mal.rb
|
2014-04-15 08:04:48 +04:00
|
|
|
SOURCES = $(SOURCES_BASE) $(SOURCES_LISP)
|
|
|
|
|
2016-02-18 09:33:19 +03:00
|
|
|
all:
|
|
|
|
true
|
|
|
|
|
2016-02-24 09:45:40 +03:00
|
|
|
dist: mal.rb mal
|
2016-02-18 09:33:19 +03:00
|
|
|
|
|
|
|
mal.rb: $(SOURCES)
|
2016-02-24 09:45:40 +03:00
|
|
|
cat $+ | grep -v "^require_relative" > $@
|
|
|
|
|
|
|
|
mal: mal.rb
|
2016-02-18 09:33:19 +03:00
|
|
|
echo "#!/usr/bin/env ruby" > $@
|
2016-02-24 09:45:40 +03:00
|
|
|
cat $< >> $@
|
2016-02-18 09:33:19 +03:00
|
|
|
chmod +x $@
|
|
|
|
|
|
|
|
clean:
|
2016-02-24 09:45:40 +03:00
|
|
|
rm -f mal.rb mal
|