diff options
Diffstat (limited to 'src/Makefile')
| -rw-r--r-- | src/Makefile | 21 |
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 + |
