1
0
Fork 0
forked from len0rd/rockbox

manual: add 'manual-7zip' build target for 7zipped HTML manual.

7zip produces files nearly *half* the size of a zipped one.

Change-Id: Ic8bc4129dd4106a32060c98049061ea3848ebddc
This commit is contained in:
Solomon Peachy 2025-04-18 11:20:48 -04:00
parent c33aafcd5c
commit 8d5fd1b20b
3 changed files with 13 additions and 1 deletions

View file

@ -78,6 +78,9 @@ manual-txt-zip: manual-txt
manual-zip: manual-html
$(SILENT)$(MAKE) -C $(OBJDIR) htmlzip
manual-7zip: manual-html
$(SILENT)$(MAKE) -C $(OBJDIR) html7zip
clean: objdir-check
$(SILENT)rm -rf $(OBJDIR)/manual $(OBJDIR)/*.pdf
$(SILENT)rm -rf $(OBJDIR)/html $(OBJDIR)/txt

View file

@ -32,6 +32,12 @@ htmlzip: buildhtml
zip -r $(OBJDIR)/rockbox-manual.zip html; \
cp $(OBJDIR)/rockbox-manual.zip $(OBJDIR)/../ )
html7zip: buildhtml
@(cd $(OBJDIR); \
7z a $(OBJDIR)/rockbox-manual.7z html; \
cp $(OBJDIR)/rockbox-manual.7z $(OBJDIR)/../ )
txtzip: buildtxt
@(cd $(OBJDIR); \
zip -r $(OBJDIR)/rockbox-manual-txt.zip txt; \