[erlang-questions] Use of makefiles

Logan, Martin Martin.Logan@REDACTED
Tue Mar 4 23:57:41 CET 2008


I recommend Sinan.  If that is not what you are looking for try OTP Base which is a make based build system.  http://code.google.com/p/otp-base

Cheers,
Martin 

-----Original Message-----
From: erlang-questions-bounces@REDACTED [mailto:erlang-questions-bounces@REDACTED] On Behalf Of Alexander Lamb
Sent: Thursday, February 28, 2008 5:40 AM
To: erlang-questions@REDACTED
Subject: [erlang-questions] Use of makefiles

Hello list,

I am starting a project in Erlang. I read Armstrong's book. He  
indicates he uses makefiles to manage compiling erlang modules.

Now, I am wondering. Is this overkill? Slightly outdated (makefiles  
make me think of those sendmail config files: totally weird and  
impossible to understand)?

What are the various strategies to manage your build / run or build /  
deploy cycles?

Then, what is the strategy used to organize your code?

I thought having a folder for a project, containing the makefile, then  
a subdirectory src and a subdirectory ebin

Unfortunately, I didn't manage to get my makefile work with that  
setup. Here is my makefile:

.SUFFIXES: .erl .beam .yrl

.erl.beam:
	erlc -W $<

.yrl.erl:
	erlc -W $<

ERL = erl -boot start_clean

MODS = profiles

all: compile
	${ERL} -s profiles start

compile: ${MODS:%=%.beam}

clean:
	rm -rf *.beam erl_crash.dump

subdirs:
	cd src; make

Now this works, but only with .erl and .beam files in the main  
directory.

Thanks,

--
Alexander Lamb
Founding Associate
RODANOTECH Sàrl

4 ch. de la Tour de Champel
1206 Geneva
Switzerland

Tel:  022 347 77 37
Fax: 022 347 77 38

http://www.rodanotech.ch



_______________________________________________
erlang-questions mailing list
erlang-questions@REDACTED
http://www.erlang.org/mailman/listinfo/erlang-questions



More information about the erlang-questions mailing list