diff options
-rw-r--r-- | Makefile | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -159,15 +159,18 @@ composer_dependencies: clean | |||
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 |
162 | release_tar: composer_dependencies | 162 | release_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 |
168 | release_zip: composer_dependencies | 169 | release_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 | ||
208 | doc_html: authors htmlpages | 211 | doc_html: authors htmlpages |
209 | |||