fix Makefile dist
This commit is contained in:
parent
222e9d5956
commit
e5d211826f
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
|||||||
.idea
|
.idea
|
||||||
|
build
|
||||||
|
6
Makefile
6
Makefile
@ -115,20 +115,21 @@ dist:
|
|||||||
source:
|
source:
|
||||||
rm -rf $(source_build_directory)
|
rm -rf $(source_build_directory)
|
||||||
mkdir -p $(source_build_directory)
|
mkdir -p $(source_build_directory)
|
||||||
tar cvzf $(source_package_name).tar.gz ../$(app_name) \
|
tar \
|
||||||
--exclude-vcs \
|
--exclude-vcs \
|
||||||
--exclude="../$(app_name)/build" \
|
--exclude="../$(app_name)/build" \
|
||||||
--exclude="../$(app_name)/js/node_modules" \
|
--exclude="../$(app_name)/js/node_modules" \
|
||||||
--exclude="../$(app_name)/node_modules" \
|
--exclude="../$(app_name)/node_modules" \
|
||||||
--exclude="../$(app_name)/*.log" \
|
--exclude="../$(app_name)/*.log" \
|
||||||
--exclude="../$(app_name)/js/*.log" \
|
--exclude="../$(app_name)/js/*.log" \
|
||||||
|
-cvzf $(source_package_name).tar.gz ../$(app_name)
|
||||||
|
|
||||||
# Builds the source package for the app store, ignores php and js tests
|
# Builds the source package for the app store, ignores php and js tests
|
||||||
.PHONY: appstore
|
.PHONY: appstore
|
||||||
appstore:
|
appstore:
|
||||||
rm -rf $(appstore_build_directory)
|
rm -rf $(appstore_build_directory)
|
||||||
mkdir -p $(appstore_build_directory)
|
mkdir -p $(appstore_build_directory)
|
||||||
tar cvzf $(appstore_package_name).tar.gz ../$(app_name) \
|
tar \
|
||||||
--exclude-vcs \
|
--exclude-vcs \
|
||||||
--exclude="../$(app_name)/build" \
|
--exclude="../$(app_name)/build" \
|
||||||
--exclude="../$(app_name)/tests" \
|
--exclude="../$(app_name)/tests" \
|
||||||
@ -150,6 +151,7 @@ appstore:
|
|||||||
--exclude="../$(app_name)/protractor\.*" \
|
--exclude="../$(app_name)/protractor\.*" \
|
||||||
--exclude="../$(app_name)/.*" \
|
--exclude="../$(app_name)/.*" \
|
||||||
--exclude="../$(app_name)/js/.*" \
|
--exclude="../$(app_name)/js/.*" \
|
||||||
|
-cvzf $(appstore_package_name).tar.gz ../$(app_name)
|
||||||
|
|
||||||
.PHONY: test
|
.PHONY: test
|
||||||
test: composer
|
test: composer
|
||||||
|
Loading…
Reference in New Issue
Block a user