diff options
author | VirtualTam <virtualtam+github@flibidi.net> | 2017-08-05 10:40:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-05 10:40:35 +0200 |
commit | b4ff0afb24db6e4cb3543bbd71f01bbb0716b144 (patch) | |
tree | f86caabf507fcd44db38353092f7b4476516bcd5 /Makefile | |
parent | 1fdb40fc169b42af7622610c4f088688de231118 (diff) | |
parent | 29712e905b8a9bdf1eaa21cbda3ca7c9eb215937 (diff) | |
download | Shaarli-b4ff0afb24db6e4cb3543bbd71f01bbb0716b144.tar.gz Shaarli-b4ff0afb24db6e4cb3543bbd71f01bbb0716b144.tar.zst Shaarli-b4ff0afb24db6e4cb3543bbd71f01bbb0716b144.zip |
Merge pull request #910 from virtualtam/documentation/improvements
Include generated doc in release archives, remove HTML from SCM
Diffstat (limited to 'Makefile')
-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 | |||