-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathMakefile
24 lines (17 loc) · 856 Bytes
/
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
ifeq ($(PREFIX),)
PREFIX := /tmp
endif
ifeq ($(OO_PLUGIN_VERSION),)
OO_PLUGIN_VERSION := $(shell git describe --tags --always)
endif
.PHONY: clean-target clean release copy-files-release composer-install-nodev
copy-files-release:
install -d $(PREFIX)
find * -type f \( ! -path "build/*" ! -path "vendor/bin/*" ! -path "./.*" ! -path "nbproject/*" ! -path "tests/*" ! -path "documentation/*" ! -path "scripts/*" ! -iname ".*" ! -iname "Readme.md" ! -iname "phpstan.neon" ! -iname "phpstan-baseline.neon" ! -iname "phpunit.xml*" ! -iname "Makefile" ! -iname "phpcs.xml*" \) -exec install -v -D -T ./{} $(PREFIX)/{} \;
composer-install-nodev:
cd $(PREFIX); composer install --no-dev -a
find $(PREFIX) '-type' 'l' '-exec' 'unlink' '{}' ';'
release: copy-files-release composer-install-nodev
clean-target:
rm -rf $(PREFIX)
clean: clean-target