aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index c5dee80e..6483fca7 100644
--- a/Makefile
+++ b/Makefile
@@ -155,19 +155,22 @@ release_archive: release_tar release_zip
155 155
156### download 3rd-party PHP libraries 156### download 3rd-party PHP libraries
157composer_dependencies: clean 157composer_dependencies: clean
158 composer update --no-dev 158 composer install --no-dev --prefer-dist
159 find vendor/ -name ".git" -type d -exec rm -rf {} + 159 find vendor/ -name ".git" -type d -exec rm -rf {} +
160 160
161### generate a release tarball and include 3rd-party dependencies 161### generate a release tarball and include 3rd-party dependencies
162release_tar: composer_dependencies 162release_tar: composer_dependencies doc_html
163 git archive --prefix=$(ARCHIVE_PREFIX) -o $(ARCHIVE_VERSION).tar HEAD 163 git archive --prefix=$(ARCHIVE_PREFIX) -o $(ARCHIVE_VERSION).tar HEAD
164 tar rvf $(ARCHIVE_VERSION).tar --transform "s|^vendor|$(ARCHIVE_PREFIX)vendor|" vendor/ 164 tar rvf $(ARCHIVE_VERSION).tar --transform "s|^vendor|$(ARCHIVE_PREFIX)vendor|" vendor/
165 tar rvf $(ARCHIVE_VERSION).tar --transform "s|^doc/html|$(ARCHIVE_PREFIX)doc/html|" doc/html/
165 gzip $(ARCHIVE_VERSION).tar 166 gzip $(ARCHIVE_VERSION).tar
166 167
167### generate a release zip and include 3rd-party dependencies 168### generate a release zip and include 3rd-party dependencies
168release_zip: composer_dependencies 169release_zip: composer_dependencies doc_html
169 git archive --prefix=$(ARCHIVE_PREFIX) -o $(ARCHIVE_VERSION).zip -9 HEAD 170 git archive --prefix=$(ARCHIVE_PREFIX) -o $(ARCHIVE_VERSION).zip -9 HEAD
170 mkdir $(ARCHIVE_PREFIX) 171 mkdir -p $(ARCHIVE_PREFIX)/{doc,vendor}
172 rsync -a doc/html/ $(ARCHIVE_PREFIX)doc/html/
173 zip -r $(ARCHIVE_VERSION).zip $(ARCHIVE_PREFIX)doc/
171 rsync -a vendor/ $(ARCHIVE_PREFIX)vendor/ 174 rsync -a vendor/ $(ARCHIVE_PREFIX)vendor/
172 zip -r $(ARCHIVE_VERSION).zip $(ARCHIVE_PREFIX)vendor/ 175 zip -r $(ARCHIVE_VERSION).zip $(ARCHIVE_PREFIX)vendor/
173 rm -rf $(ARCHIVE_PREFIX) 176 rm -rf $(ARCHIVE_PREFIX)
@@ -206,4 +209,3 @@ htmlpages:
206 rm -r venv 209 rm -r venv
207 210
208doc_html: authors htmlpages 211doc_html: authors htmlpages
209