Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

21 lines (15 sloc) 0.462 kb
INCLUDEDIR=src
TARGETDIR=ebin
SRCDIR=src
INCLUDEFLAGS=$(patsubst %,-I%, ${INCLUDEDIR})
MODULES = php_app php php_eval php_sup php_util
INCLUDES =
TARGETS = $(patsubst %,${TARGETDIR}/%.beam,${MODULES})
HEADERS = $(patsubst %,${INCLUDEDIR}/%.hrl,${INCLUDES})
all: ${TARGETS}
$(TARGETS): ${TARGETDIR}/%.beam: ${SRCDIR}/%.erl ${HEADERS}
mkdir -p ebin
erlc ${INCLUDEFLAGS} -o ${TARGETDIR} $<
cp ${SRCDIR}/*.app $(TARGETDIR)
clean:
rm -f ${TARGETDIR}/*.beam
Jump to Line
Something went wrong with that request. Please try again.