summaryrefslogtreecommitdiffstats
path: root/eshprof
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2016-02-25 02:31:34 (EST)
committer P. J. McDermott <pj@pehjota.net>2016-02-25 02:31:34 (EST)
commitad8762098ba8f0dcce54b7bb9b5eb22e7b36c292 (patch)
tree3f279641eb6d107111e277505e5b1cbe713251ad /eshprof
parent4ebdf962897f4401b062cb3475b93042a3ce3e53 (diff)
downloadeggshell-ad8762098ba8f0dcce54b7bb9b5eb22e7b36c292.zip
eggshell-ad8762098ba8f0dcce54b7bb9b5eb22e7b36c292.tar.gz
eggshell-ad8762098ba8f0dcce54b7bb9b5eb22e7b36c292.tar.bz2
eshprof/Makefile: Add
Diffstat (limited to 'eshprof')
-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 $< $@