summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--eshprof/Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/eshprof/Makefile b/eshprof/Makefile
new file mode 100644
index 0000000..94aafe2
--- /dev/null
+++ b/eshprof/Makefile
@@ -0,0 +1,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 $< $@