summaryrefslogtreecommitdiffstats
path: root/eshprof/Makefile
blob: 94aafe27bc57b51e4a6f2a38f43ffd0a1a5a237b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
SOURCES = \
	main.esh \
	flat-profile.esh
OBJECTS = $(SOURCES:.esh=.sh)

all: eshprof

.SUFFIXES:
.SUFFIXES: .esh .sh

clean:
	rm -f eshprof $(OBJECTS)

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

$(OBJECTS): Makefile

.esh.sh:
	cp $< $@