aboutsummaryrefslogtreecommitdiff
path: root/bash/Makefile
blob: df663b50c53fb06f07e4f66f84b7d10a7d72cea3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
SOURCES_BASE = types.sh reader.sh printer.sh
SOURCES_LISP = env.sh core.sh stepA_interop.sh
SOURCES = $(SOURCES_BASE) $(SOURCES_LISP)

all: mal.sh

mal.sh: $(SOURCES)
	cat $+ > $@
	echo "#!/bin/bash" > $@
	cat $+ | grep -v "^source " >> $@
	chmod +x $@

clean:
	rm -f mal.sh

.PHONY: stats

stats: $(SOURCES)
	@wc $^
stats-lisp: $(SOURCES_LISP)
	@wc $^