Skip to content

Commit 9767984

Browse files
committed
feat: Add project-level Makefile
1 parent 7d74004 commit 9767984

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

Makefile

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
MAJOR_VERSION?=3
2+
PLUGINDEV_PROJECT_DIR?=/Users/andrew/webdev/sites/plugindev/cms_v${MAJOR_VERSION}/
3+
VENDOR?=nystudio107
4+
PROJECT_PATH?=${VENDOR}/$(shell basename $(CURDIR))
5+
6+
.PHONY: dev docs release
7+
8+
# Start up the buildchain dev server
9+
dev:
10+
# Start up the docs dev server
11+
docs:
12+
${MAKE} -C docs/ dev
13+
# Run code quality tools, tests, and build the buildchain & docs in preparation for a release
14+
release: --code-quality --code-tests --buildchain-clean-build --docs-clean-build
15+
# The internal targets used by the dev & release targets
16+
--buildchain-clean-build:
17+
--code-quality:
18+
${MAKE} -C ${PLUGINDEV_PROJECT_DIR} -- ecs check vendor/${PROJECT_PATH}/src --fix
19+
${MAKE} -C ${PLUGINDEV_PROJECT_DIR} -- phpstan analyze -c vendor/${PROJECT_PATH}/phpstan.neon
20+
--code-tests:
21+
--docs-clean-build:
22+
${MAKE} -C docs/ clean
23+
${MAKE} -C docs/ image-build
24+
${MAKE} -C docs/ fix

0 commit comments

Comments
 (0)