-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
19 lines (16 loc) · 736 Bytes
/
Makefile
File metadata and controls
19 lines (16 loc) · 736 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
BIN_DIR := bin
.PHONY: install tests
# Install the project
install:
@echo "Generating files for $(company)\\$(project) namespace..."
@find ./src -type f -exec sed -i "s/MyCompany\\\\MyProject/$(company)\\\\$(project)/g" {} \;
@find ./tests -type f -exec sed -i "s/MyCompany\\\\MyProject/$(company)\\\\$(project)/g" {} \;
@sed -i.bak "s/jpchateau\/php-prototype-library/$(project)/g" composer.json
@sed -i.bak "s/Quickly initiate the development of a new PHP library/$(project) description/g" composer.json
@sed -i.bak "s/MyCompany\\\\\\\\MyProject/$(company)\\\\\\\\$(project)/g" composer.json
@composer dump-autoload
@rm .travis.yml *.bak
@echo "# $(project)" > README.md
# Execute all the tests
tests:
$(BIN_DIR)/phpunit