Permalink
Browse files

Merged bug21410 into default

  • Loading branch information...
2 parents 7add9c9 + 6a0fd41 commit 660a7762525e78403da20d0371c6379ed7f1b92f @0x6e6562 0x6e6562 committed Aug 18, 2009
Showing with 4 additions and 3 deletions.
  1. +4 −3 Makefile
View
@@ -18,7 +18,7 @@ else
SED=sed
endif
-all: $(TARGETS)
+all: package
$(EBIN_DIR)/%.beam: $(SOURCE_DIR)/%.erl $(EBIN_DIR) $(INCLUDES)
erlc $(ERLC_OPTS) $<
@@ -34,11 +34,12 @@ clean:
cleandoc:
rm -f doc/*
-dist: all
+dist: $(TARGETS)
mkdir -p $(DIST_DIR)
cp -r doc ebin include src test Makefile $(DIST_DIR)
-package: dist
+package: $(DIST_DIR)/$(PACKAGE).ez
+$(DIST_DIR)/$(PACKAGE).ez: $(TARGETS) dist
mkdir -p $(DIST_DIR)/$(PACKAGE_NAME)
cp -r $(DIST_DIR)/$(EBIN_DIR) $(DIST_DIR)/$(PACKAGE_NAME)
(cd $(DIST_DIR); zip -r $(EZ_NAME) $(PACKAGE_NAME))

0 comments on commit 660a776

Please sign in to comment.