aboutsummaryrefslogtreecommitdiff
path: root/bash/Makefile
blob: 65694eefa45bafcd0aef14275c8fe1bfae84b3ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
TESTS = tests/types.sh tests/reader.sh

SOURCES = types.sh reader.sh printer.sh env.sh core.sh stepA_more.sh

all: mal.sh

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

clean:
	rm -f mal.sh

.PHONY: stats tests $(TESTS)

stats: $(SOURCES)
	@wc $^

tests: $(TESTS)

$(TESTS):
	@echo "Running $@"; \
	bash $@ || exit 1; \