aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Makefile
diff options
context:
space:
mode:
authorlukeg <lukeg>2003-02-21 19:01:14 +0000
committerlukeg <lukeg>2003-02-21 19:01:14 +0000
commite7d48fe500f6ed676ee1b212ebd61408bced1c5b (patch)
tree11a756c7bb4906f3e186c1cb8331cb7ed27bc69c /src/Makefile
downloadermacs-fork-e7d48fe500f6ed676ee1b212ebd61408bced1c5b.tar.gz
*** empty log message ***
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile
new file mode 100644
index 0000000..0e2630d
--- /dev/null
+++ b/src/Makefile
@@ -0,0 +1,21 @@
+include ../../../support/include.mk
+
+ERLC_FLAGS += -I ../.. -pa ../ebin/
+
+SCRIPT=../bin/ermacs
+SED_EXPR = s\\%BASEDIR%\\`pwd`/..\\
+
+all: $(ERL_OBJECTS) $(SCRIPT)
+
+# edit_transform has to be built first. This rule is actually
+# circular, but that seems okay with GNU make.
+$(ERL_OBJECTS): ../ebin/edit_transform.beam
+
+$(SCRIPT): ermacs.in
+ sed ${SED_EXPR} < $< > $@
+ chmod +x $@
+
+clean:
+ -rm -f $(ERL_OBJECTS)
+ -rm -f ../bin/ermacs
+