Permalink
Browse files

Made packaging the default Makefile goal

  • Loading branch information...
1 parent 7add9c9 commit 6a0fd41ff3309abe974aa42ddbc08deddec1ff67 @paulj paulj committed Aug 17, 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 6a0fd41

Please sign in to comment.