1
1
mirror of https://github.com/kanaka/mal.git synced 2024-09-21 10:37:58 +03:00
mal/awk/Makefile

21 lines
397 B
Makefile
Raw Normal View History

2015-08-25 18:46:31 +03:00
SOURCES_BASE = types.awk reader.awk printer.awk
SOURCES_LISP = env.awk core.awk stepA_mal.awk
SOURCES = $(SOURCES_BASE) $(SOURCES_LISP)
2016-02-15 05:57:31 +03:00
all:
true
dist: mal.awk mal
mal.awk: $(SOURCES)
echo 'arbitrary_long_name==0 "exec" "/usr/bin/gawk" "-O" "-f" "$$0" "$$@"' > $@
cat $+ | grep -v "^@include " >> $@
mal: mal.awk
echo '#!/bin/sh' > $@
cat $< >> $@
chmod +x $@
2016-02-15 05:57:31 +03:00
clean:
rm -f mal.awk mal