summaryrefslogtreecommitdiffstats
path: root/eshld/Makefile
blob: 03b3c3b617058d1d272e289b60ed3948d8d5511e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
SOURCES = \
	main.esh \
	link.esh
OBJECTS = $(SOURCES:.esh=.sh)

all: eshld

.SUFFIXES:
.SUFFIXES: .esh .sh

clean:
	rm -f eshld $(OBJECTS)

eshld: $(OBJECTS) Makefile
	cat $(OBJECTS) >$@
	printf 'main "$${@}"\n' >>$@

$(OBJECTS): Makefile

.esh.sh:
	cp $< $@