aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile9
-rw-r--r--README.md2
2 files changed, 7 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index c0840b1..fd30261 100644
--- a/Makefile
+++ b/Makefile
@@ -5,11 +5,11 @@ js_sources := $(wildcard src/*.js)
js_bundles := $(js_sources:src/%.js=assets/js/%.bundle.js)
zip_release := $(GIT_VERSION:%=dist/w_cms_%.zip)
-build: clean $(zip_release)
+all: php_dependencies $(js_bundles)
-install: php_dependencies $(js_bundles)
+dist: distclean $(zip_release)
-dist/w_cms_%.zip: install
+dist/w_cms_%.zip: all
@echo "Building Zip release..."
mkdir -p $(dir $@)
zip -r $@ \
@@ -43,6 +43,9 @@ js_dependencies:
js_clean:
@echo "Cleaning JS..."
rm -rf node_modules
+ rm -rf $(js_bundles)
clean: php_clean js_clean
+
+distclean:
rm -rf dist
diff --git a/README.md b/README.md
index bc22fa1..37a74e4 100644
--- a/README.md
+++ b/README.md
@@ -79,7 +79,7 @@ While developing the JS sources it is useful to run webpack in watch mode so tha
## Release zip
-To build the release zip, make sure you are on `master` and executed `git pull` then run `make`. This will create a zip file in `dist/`.
+To build the release zip, make sure you are on `master` and executed `git pull` then run `make dist`. This will create a zip file in `dist/`.
To Do