File tree Expand file tree Collapse file tree 1 file changed +8
-12
lines changed Expand file tree Collapse file tree 1 file changed +8
-12
lines changed Original file line number Diff line number Diff line change 1
1
.PHONY : apigen composer test docs mkdocs
2
2
3
- MONGODB_LIB_VERSION =` php -r ' require "src/Collection.php"; echo MongoDB\Collection::VERSION, "\n";' `
4
3
COMPOSER_ARGS =update --no-interaction --prefer-source
5
4
PHPUNIT_ARGS =--process-isolation
6
5
@@ -54,22 +53,19 @@ docs-api: apigen
54
53
55
54
docs : mkdocs
56
55
57
-
58
- release : test RELEASE
56
+ release/% : release-log/%
59
57
@echo " Please run:"
60
- @echo " " git add RELEASE-$(MONGODB_LIB_VERSION )
61
- @echo " " git commit -m \" Add $(MONGODB_LIB_VERSION ) release notes\"
62
- @echo " " git tag -a -m \" Release MongoDB library $(MONGODB_LIB_VERSION ) \" $(MONGODB_LIB_VERSION )
63
- @echo " " git push --tags
64
- @echo " " make release-docs
65
- @echo " And don't forget to bump version in src/Collection.php"
58
+ @echo " " git add RELEASE-$(* )
59
+ @echo " " git commit -m \" Add $(* ) release notes\"
60
+ @echo " " git tag -a -m \" Release MongoDB library $(* ) \" $(* )
61
+ @echo " " git push --tags
62
+ @echo " " make release-docs
66
63
67
64
docs :
68
65
mkdocs build --clean
69
66
70
67
release-docs : docs
71
68
mkdocs gh-deploy --clean
72
69
73
- RELEASE :
74
- @git log --pretty=format:" %ad %an <%ae>%n%x09* %s%n" --date short --since=" $$ (git show -s --format=%ad ` git rev-list --tags --max-count=1` )" > RELEASE-$(MONGODB_LIB_VERSION )
75
-
70
+ release-log/% :
71
+ @git log --pretty=format:" %ad %an <%ae>%n%x09* %s%n" --date short --since=" $$ (git show -s --format=%ad ` git rev-list --tags --max-count=1` )" > RELEASE-$(* )
You can’t perform that action at this time.
0 commit comments