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
|
|
|
|
|
2016-02-24 09:45:40 +03:00
|
|
|
dist: mal.awk mal
|
2015-10-31 06:30:56 +03:00
|
|
|
|
|
|
|
mal.awk: $(SOURCES)
|
2016-02-24 09:45:40 +03:00
|
|
|
echo 'arbitrary_long_name==0 "exec" "/usr/bin/gawk" "-O" "-f" "$$0" "$$@"' > $@
|
2015-10-31 06:30:56 +03:00
|
|
|
cat $+ | grep -v "^@include " >> $@
|
2016-02-24 09:45:40 +03:00
|
|
|
|
|
|
|
mal: mal.awk
|
|
|
|
echo '#!/bin/sh' > $@
|
|
|
|
cat $< >> $@
|
2015-10-31 06:30:56 +03:00
|
|
|
chmod +x $@
|
|
|
|
|
2016-02-15 05:57:31 +03:00
|
|
|
clean:
|
2016-02-24 09:45:40 +03:00
|
|
|
rm -f mal.awk mal
|