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

42 lines (28 sloc) 1.051 kB
# Make file for the Erlang Chess Move Generator
# Author: Francois Cardinaux
# Date: 2011.06.24
#
# Use the Makefile in the parent directory instead.
# leave these lines alone
.SUFFIXES: .erl .beam .yrl
.erl.beam:
erlc -DTEST -W -o ../beams $<
.yrl.erl:
erlc -DTEST -W -o ../beams $<
ERL = erl -boot start_clean
# Here's a list of the erlang modules you want compiling
# If the modules don't fit onto one line add a \ character
# to the end of the line and continue on the next line
# use vpath to tell make where to search for %.erl files (source http://stackoverflow.com/questions/1894363/how-to-make-two-different-source-directories-in-a-makefile-output-to-one-bin-dire)
vpath %.erl ../erl
# Edit the lines below
MODS = chessfold \
chessfold_test
# The first target in any makefile is the default target.
# If you just type "make" then "make all" is assumed (because
# "all" is the first target in this makefile)
all: compile
compile: ${MODS:%=%.beam}
# remove all the code
clean:
rm -rf *.beam erl_crash.dump
Jump to Line
Something went wrong with that request. Please try again.