mirror of
https://github.com/owncloudarchive/contacts.git
synced 2024-11-28 10:24:11 +01:00
Adding Makefile for easier packaging
This commit is contained in:
parent
fd2d774af1
commit
15f3253490
32
Makefile
Normal file
32
Makefile
Normal file
@ -0,0 +1,32 @@
|
||||
# Makefile for building the project
|
||||
|
||||
app_name=contacts
|
||||
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)
|
||||
|
||||
appstore: clean
|
||||
mkdir -p $(appstore_dir)
|
||||
tar cvzf $(appstore_dir)/$(package_name).tar.gz $(project_dir) \
|
||||
--exclude-vcs \
|
||||
--exclude=$(project_dir)/build \
|
||||
--exclude=$(project_dir)/build/artifacts \
|
||||
--exclude=$(project_dir)/js/node_modules \
|
||||
--exclude=$(project_dir)/js/.bowerrc \
|
||||
--exclude=$(project_dir)/.jshintrc \
|
||||
--exclude=$(project_dir)/.jshintignore \
|
||||
--exclude=$(project_dir)/.travis.yml \
|
||||
--exclude=$(project_dir)/.scrutinizer.yml \
|
||||
--exclude=$(project_dir)/phpunit*xml \
|
||||
--exclude=$(project_dir)/Makefile \
|
||||
--exclude=$(project_dir)/tests \
|
||||
--exclude=$(project_dir)/l10n/.tx \
|
||||
--exclude=$(project_dir)/l10n/no-php \
|
||||
|
Loading…
Reference in New Issue
Block a user