make, swift3: fix parsing empty literal sequences.
[jackhill/mal.git] / ps / Makefile
1 SOURCES_BASE = types.ps reader.ps printer.ps
2 SOURCES_LISP = env.ps core.ps stepA_mal.ps
3 SOURCES = $(SOURCES_BASE) $(SOURCES_LISP)
4
5 all:
6 true
7
8 dist: mal.ps mal
9
10 mal.ps: $(SOURCES)
11 cat $+ | grep -v "runlibfile$$" > $@
12
13 mal: mal.ps
14 echo "#!/bin/sh" > $@
15 echo "\":\" pop pop pop pop %#; exec gs -d'#!'=null -d'\":\"'=null -q -dNODISPLAY -- \"\$$0\" \"\$$@\"" >> $@
16 cat $< >> $@
17 chmod +x $@
18
19 clean:
20 rm -f mal.ps mal