aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 15 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 1e41f82..06dec9b 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,17 @@
-SUBDIRS = src mods/src
+ERL = erl
+SRC_DIR = $(CURDIR)/src
+EBIN_DIR = $(CURDIR)/ebin
-include ../../support/subdir.mk
+.PHONY: all clean shell
+all:
+ $(ERL) -noinput -eval "case make:all() of up_to_date -> halt(0); error -> halt(1) end."
+
+clean:
+ rm -f $(EBIN_DIR)/*.beam
+
+run: all
+ ./bin/ermacs
+
+shell: all
+ $(ERL) -pa $(EBIN_DIR)