-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
40 lines (35 loc) · 1.16 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Makefile for building the project
app_name=user_shib
project_dir=$(CURDIR)/../$(app_name)
build_dir=$(CURDIR)/build/artifacts
appstore_dir=$(build_dir)/appstore
source_dir=$(build_dir)/source
package_name=$(app_name)
all: dist
clean:
rm -rf $(build_dir)
dist: clean
mkdir -p $(source_dir)
tar cvzf $(source_dir)/$(package_name).tar.gz $(project_dir) \
--exclude-vcs \
--exclude=$(project_dir)/build/artifacts \
--exclude=$(project_dir)/js/node_modules \
--exclude=$(project_dir)/js/coverage
appstore_package: clean
mkdir -p $(appstore_dir)
tar cvzf $(appstore_dir)/$(package_name).tar.gz $(project_dir) \
--exclude-vcs \
--exclude=$(project_dir)/build \
--exclude=$(project_dir)/js/node_modules \
--exclude=$(project_dir)/js/.bowerrc \
--exclude=$(project_dir)/js/.jshintrc \
--exclude=$(project_dir)/js/Gruntfile.js \
--exclude=$(project_dir)/js/*.json \
--exclude=$(project_dir)/js/*.conf.js \
--exclude=$(project_dir)/js/*.log \
--exclude=$(project_dir)/js/README.md \
--exclude=$(project_dir)/js/.bowerrc \
--exclude=$(project_dir)/.travis.yml \
--exclude=$(project_dir)/phpunit*xml \
--exclude=$(project_dir)/Makefile \
--exclude=$(project_dir)/tests