aboutsummaryrefslogtreecommitdiff
path: root/bash/Makefile
blob: dc1d1ad196248e6fdec24330b309463c47cc63e6 (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_mal.sh
SOURCES = $(SOURCES_BASE) $(SOURCES_LISP)

all: mal.sh

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

clean:
	rm -f mal.sh

.PHONY: stats

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