aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Makefile
blob: 087f2a90b6894834acafff9abb027905cc38fa1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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

$(ERL_OBJECTS): $(ERL_HEADERS)