diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2010-10-13 23:16:09 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2010-10-13 23:16:09 +0200 |
commit | 0196ed8c6112d1695493e3fe8e16f4c25e838fff (patch) | |
tree | 29c96f6c40feb99636aec37c7bfdeab9c612f494 /Makefile | |
parent | 398ee976066c88df5d7cd38086c021faa479614d (diff) | |
download | erlang-0196ed8c6112d1695493e3fe8e16f4c25e838fff.tar.gz erlang-0196ed8c6112d1695493e3fe8e16f4c25e838fff.tar.xz erlang-0196ed8c6112d1695493e3fe8e16f4c25e838fff.zip |
new global makefile
make targets:
client
server
all = client and server
clean
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..c309692 --- /dev/null +++ b/Makefile @@ -0,0 +1,23 @@ +CLIENT-SRC=$(wildcard client/*.erl) +CLIENT-BIN=$(CLIENT-SRC:.erl=.beam) + +SERVER-SRC=$(wildcard server/*.erl) +SERVER-BIN=$(SERVER-SRC:.erl=.beam) + +COMMON-SRC=$(wildcard common/*.erl) +COMMON-BIN=$(COMMON-SRC:.erl=.beam) + + +.PHONY: all client server clean + +all: client server + +clean: + -$(RM) $(CLIENT-BIN) $(SERVER-BIN) $(COMMON-BIN) + +client: $(CLIENT-BIN) $(COMMON-BIN) + +server: $(SERVER-BIN) $(COMMON-BIN) + +%.beam: %.erl + erlc -o $(dir $@) $< |