Welcome to mirror list, hosted at ThFree Co, Russian Federation.

Makefile - github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ae4e25fd4fd0b08b96fccd0f5718f8f0e0f0e202 (plain)
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
# Makefile for building the project

app_name=mail
project_dir=$(CURDIR)/../$(app_name)
build_dir=$(CURDIR)/build/artifacts
appstore_dir=$(build_dir)/appstore
source_dir=$(build_dir)/source
package_name=$(app_name)
docker_image=christophwurst/owncloud-mail-test-docker
mail_user=user@domain.tld
mail_pwd=mypassword

all: appstore

clean:
	rm -rf $(build_dir)
	rm -rf node_modules
	rm -rf js/vendor

composer.phar:
	curl -sS https://getcomposer.org/installer | php

install-deps: install-composer-deps install-npm-deps install-bower-deps

install-composer-deps: composer.phar
	php composer.phar install

install-npm-deps:
	npm install --production

install-npm-deps-dev:
	npm install --deps

install-bower-deps: bower.json install-npm-deps
	./node_modules/bower/bin/bower install

optimize-js: install-npm-deps install-bower-deps
	./node_modules/requirejs/bin/r.js -o build/build.js

dev-setup: install-composer-deps install-npm-deps-dev install-bower-deps

start-imap-docker:
	docker pull $(docker_image)
	docker run --name="ocimaptest" -d \
	-p 2525:25 -p 587:587 -p 993:993 \
	-e POSTFIX_HOSTNAME=mail.domain.tld $(docker_image)

add-imap-account:
	docker exec -it ocimaptest /opt/bin/useradd $(mail_user) $(mail_pwd)

update-composer: composer.phar
	rm -f composer.lock
	php composer.phar install --prefer-dist

appstore: clean install-deps optimize-js
	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)/node_modules \
	--exclude=$(project_dir)/.bowerrc \
	--exclude=$(project_dir)/.gitattributes \
	--exclude=$(project_dir)/.gitignore \
	--exclude=$(project_dir)/.jscsrc \
	--exclude=$(project_dir)/.jshintrc \
	--exclude=$(project_dir)/.jshintignore \
	--exclude=$(project_dir)/.travis.yml \
	--exclude=$(project_dir)/.scrutinizer.yml \
        --exclude=$(project_dir)/bower.json \
	--exclude=$(project_dir)/build.js \
        --exclude=$(project_dir)/CONTRIBUTING.md \
	--exclude=$(project_dir)/composer.json \
	--exclude=$(project_dir)/composer.lock \
	--exclude=$(project_dir)/composer.phar \
	--exclude=$(project_dir)/Gruntfile.js \
	--exclude=$(project_dir)/issue_template.md \
	--exclude=$(project_dir)/karma.conf.js \
	--exclude=$(project_dir)/package.json \
	--exclude=$(project_dir)/translation-extractor.php \
	--exclude=$(project_dir)/phpunit*xml \
	--exclude=$(project_dir)/Makefile \
	--exclude=$(project_dir)/tests \
	--exclude=$(project_dir)/js/tests \
	--exclude=$(project_dir)/l10n/.tx \
	--exclude=$(project_dir)/l10n/no-php \
	--exclude=$(project_dir)/vendor/bin \
	--exclude=$(project_dir)/vendor/ezyang/htmlpurifier/.gitattributes \
	--exclude=$(project_dir)/vendor/ezyang/htmlpurifier/Doxyfile \
	--exclude=$(project_dir)/vendor/ezyang/htmlpurifier/FOCUS \
	--exclude=$(project_dir)/vendor/ezyang/htmlpurifier/INSTALL* \
	--exclude=$(project_dir)/vendor/ezyang/htmlpurifier/NEWS \
	--exclude=$(project_dir)/vendor/ezyang/htmlpurifier/phpdoc.ini \
	--exclude=$(project_dir)/vendor/ezyang/htmlpurifier/README \
	--exclude=$(project_dir)/vendor/ezyang/htmlpurifier/TODO \
	--exclude=$(project_dir)/vendor/ezyang/htmlpurifier/VERSION \
	--exclude=$(project_dir)/vendor/ezyang/htmlpurifier/WHATSNEW \
	--exclude=$(project_dir)/vendor/ezyang/htmlpurifier/WYSIWYG \
	--exclude=$(project_dir)/vendor/ezyang/htmlpurifier/art \
	--exclude=$(project_dir)/vendor/ezyang/htmlpurifier/benchmarks \
	--exclude=$(project_dir)/vendor/ezyang/htmlpurifier/configdoc \
	--exclude=$(project_dir)/vendor/ezyang/htmlpurifier/docs \
	--exclude=$(project_dir)/vendor/ezyang/htmlpurifier/extras \
	--exclude=$(project_dir)/vendor/ezyang/htmlpurifier/maintenance \
	--exclude=$(project_dir)/vendor/ezyang/htmlpurifier/plugins \
	--exclude=$(project_dir)/vendor/ezyang/htmlpurifier/smoketests \
	--exclude=$(project_dir)/vendor/ezyang/htmlpurifier/tests