-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathMakefile
77 lines (56 loc) · 1.5 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
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
# Makefile
COMPOSER_BIN := $(shell command -v composer 2> /dev/null)
OWNCLOUD_PATH=$(CURDIR)/../..
OCC=$(OWNCLOUD_PATH)/occ
app_name=customgroups
app_namespace=CustomGroups
build_dir=$(CURDIR)/build
# these can be extended by included files
# to add for example generated files
doc_files=README.md CHANGELOG.md
src_dirs=appinfo lib l10n js css img templates
all_src=$(src_files) $(src_dirs) $(doc_files)
# rules to be extended by included files
build_rules=
test_rules=
clean_rules=
js_rules=
help_rules=help-base
tools_path=$(shell pwd)/tools
acceptance_test_deps=vendor-bin/behat/vendor
.DEFAULT_GOAL := help
# start with displaying help
help:
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//' | sed -e 's/ */ /' | column -t -s :
.PHONY: all
all: help-hint dist
include rules/deps.mk
include rules/sign.mk
include rules/dist.mk
include rules/tests.mk
include rules/frontend.mk
.PHONY: help-base
help-base:
@echo "Please use 'make <target>' where <target> is one of"
@echo
.PHONY: help-hint
help-hint:
@echo "Building $(app_name) app"
@echo
@echo "Note: You can type 'make help' for more targets"
@echo
.PHONY: help
help: $(help_rules)
.PHONY: clean
clean: clean-deps $(clean_rules)
.PHONY: test
test: $(test_rules)
#
# Dependency management
#--------------------------------------
composer.lock: composer.json
@echo composer.lock is not up to date.
vendor: composer.lock
composer install --no-dev
vendor/bamarni/composer-bin-plugin: composer.lock
composer install