Skip to content

Instantly share code, notes, and snippets.

@x3ro
Created October 28, 2011 19:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save x3ro/1323308 to your computer and use it in GitHub Desktop.
Save x3ro/1323308 to your computer and use it in GitHub Desktop.
ERLC = erlc -v +debug_info
SRC = src/
TARGET = bintest1/
DIRS = client/ server/ /
compile:
-mkdir $(TARGET);
for i in $(DIRS); do \
echo "Source: $(SRC)$$i*.erl"; \
echo "Target: $(TARGET)$$i"; \
mkdir $(TARGET)$$i 2>/dev/null; \
$(ERLC) -o "$(TARGET)$$i" $(SRC)$$i*.erl; \
done;
clean:
for i in $(DIRS); do \
echo "Removing $(TARGET)$$i"; \
rm -r $(TARGET)$$i; \
done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment