summaryrefslogtreecommitdiffstats
path: root/eshtrans/Makefile.old
blob: b47c4a701141c7eacebf046373a7232178a39d48 (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
26
27
28
SOURCES = \
	main.esh \
	common.esh \
	tokens.esh \
	backend/main.esh \
	backend/codegen.esh \
	frontend/main.esh \
	frontend/parser.esh \
	frontend/lexer.esh
OBJECTS = $(SOURCES:.esh=.sh)

all: eshtrans.old

.SUFFIXES:
.SUFFIXES: .esh .sh

clean:
	rm -f eshtrans.old $(OBJECTS)

eshtrans.old: $(OBJECTS)
	cat $(OBJECTS) >$@
	printf 'main "$${@}"\n' >>$@
	chmod a+x $@

$(OBJECTS):

.esh.sh:
	cp $< $@