-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathMakefile
More file actions
52 lines (47 loc) · 1.33 KB
/
Makefile
File metadata and controls
52 lines (47 loc) · 1.33 KB
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
DIR_NAME = $(shell basename $(shell pwd))
.PHONY: build
build: clean vendor node_modules build/wp-rss-aggregator.zip
build/wp-rss-aggregator.zip:
mkdir -p build
rm -f "$@"
cd .. && zip -r -9 ./$(DIR_NAME)/build/wp-rss-aggregator.zip ./$(DIR_NAME) -x \
"$(DIR_NAME)/.git/*" \
"$(DIR_NAME)/.idea/*" \
"$(DIR_NAME)/nbproject/*" \
"$(DIR_NAME)/.vscode/*" \
"$(DIR_NAME)/build/*" \
"$(DIR_NAME)/docker/*" \
"$(DIR_NAME)/js/src/*" \
"$(DIR_NAME)/css/src/*" \
"$(DIR_NAME)/node_modules/*" \
"$(DIR_NAME)/test/*" \
"$(DIR_NAME)/webpack/*" \
"$(DIR_NAME)/.directory" \
"$(DIR_NAME)/.babelrc" \
"$(DIR_NAME)/.gitattributes" \
"$(DIR_NAME)/.gitignore" \
"$(DIR_NAME)/.php-cs-fixer.cache" \
"$(DIR_NAME)/.phpactor.json" \
"$(DIR_NAME)/.directory" \
"$(DIR_NAME)/build.sh" \
"$(DIR_NAME)/composer.json" \
"$(DIR_NAME)/composer.lock" \
"$(DIR_NAME)/docker-compose.yml" \
"$(DIR_NAME)/Makefile" \
"$(DIR_NAME)/package.json" \
"$(DIR_NAME)/package-lock.json" \
"$(DIR_NAME)/phpunit.xml" \
"$(DIR_NAME)/README.md" \
"$(DIR_NAME)/webpack.config.js" \
"$(DIR_NAME)/yarn.lock" \
"$(DIR_NAME)/src/V5/*"
.PHONY: clean
clean:
rm -rf ./vendor
rm -rf ./node_modules
rm -rf build
vendor:
composer install --no-dev --optimize-autoloader --prefer-dist --ignore-platform-reqs
node_modules:
yarn install
yarn run build