Permalink
Browse files

Create necessary build-product directories.

  • Loading branch information...
1 parent dacb64f commit 7c68991f83119f32b9f54e75fc2f5df737236e94 @tonyg committed May 14, 2009
Showing with 9 additions and 2 deletions.
  1. +9 −2 Makefile
View
11 Makefile
@@ -37,10 +37,17 @@ install: all
install -m 755 priv/bin/* $(FULL_INSTALL_DIR)/priv/bin
install -m 644 src/* $(FULL_INSTALL_DIR)/src
-ebin/%.beam: src/%.erl
+ebin/%.beam: src/%.erl ebin
erlc -o ebin $<
-priv/bin/serial: $(OBJECT_FILES)
+ebin:
+ mkdir -p ebin
+
+priv/bin:
+ mkdir -p priv/bin
+
+priv/bin/serial: $(OBJECT_FILES) priv/bin
+ mkdir -p priv/bin
$(CC) -o $@ $(LDFLAGS) $(OBJECT_FILES) $(LDLIBS)
clean:

0 comments on commit 7c68991

Please sign in to comment.