X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=Makefile.custom;h=6da79e6e46dd8879744162ec100a8a528965fab7;hb=43a3d50e14902e746ee53b7cfb63fe190bd5387f;hp=d9a2367ab317e2bf08600b8912c81b04f40c9123;hpb=5f9f1506ad298c94e816780a3e2d5692d002fb81;p=oweals%2Fbusybox.git diff --git a/Makefile.custom b/Makefile.custom index d9a2367ab..6da79e6e4 100644 --- a/Makefile.custom +++ b/Makefile.custom @@ -2,7 +2,7 @@ # Build system # ========================================================================== -busybox.links: $(srctree)/applets/busybox.mkll $(objtree)/include/autoconf.h $(srctree)/include/applets.h +busybox.links: $(srctree)/applets/busybox.mkll $(objtree)/include/autoconf.h include/applets.h $(Q)-$(SHELL) $^ >$@ .PHONY: install @@ -64,6 +64,10 @@ release: distclean -name .svn \ -print \ -exec rm -r -f {} \; ; \ + find busybox-$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)/ -type d \ + -name .git \ + -print \ + -exec rm -r -f {} \; ; \ find busybox-$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)/ -type f \ -name .\#* \ -print \ @@ -103,7 +107,7 @@ bigdata: busybox_unstripped # Documentation Targets .PHONY: doc -doc: docs/busybox.pod docs/BusyBox.txt docs/BusyBox.1 docs/BusyBox.html +doc: docs/busybox.pod docs/BusyBox.txt docs/busybox.1 docs/BusyBox.html # FIXME: Doesn't belong here cmd_doc = @@ -111,26 +115,30 @@ doc: docs/busybox.pod docs/BusyBox.txt docs/BusyBox.1 docs/BusyBox.html silent_cmd_doc = disp_doc = $($(quiet)cmd_doc) +# sed adds newlines after "Options:" etc, +# this is needed in order to get good BusyBox.{1,txt,html} docs/busybox.pod: $(srctree)/docs/busybox_header.pod \ - $(srctree)/include/usage.h \ + include/usage.h \ $(srctree)/docs/busybox_footer.pod \ - $(srctree)/docs/autodocifier.pl + applets/usage_pod $(disp_doc) $(Q)-mkdir -p docs - $(Q)-( cat $(srctree)/docs/busybox_header.pod ; \ - $(srctree)/docs/autodocifier.pl $(srctree)/include/usage.h ; \ - cat $(srctree)/docs/busybox_footer.pod ; ) > docs/busybox.pod + $(Q)-( \ + cat $(srctree)/docs/busybox_header.pod; \ + echo; \ + applets/usage_pod | sed 's/^[A-Za-z][A-Za-z ]*[a-z]:$$/&\n/'; \ + cat $(srctree)/docs/busybox_footer.pod; \ + ) > docs/busybox.pod docs/BusyBox.txt: docs/busybox.pod $(disp_doc) $(Q)-mkdir -p docs $(Q)-pod2text $< > $@ -docs/BusyBox.1: docs/busybox.pod +docs/busybox.1: docs/busybox.pod $(disp_doc) $(Q)-mkdir -p docs - $(Q)-pod2man --center=BusyBox --release="version $(VERSION)" \ - $< > $@ + $(Q)-pod2man --center=busybox --release="version $(KERNELVERSION)" $< > $@ docs/BusyBox.html: docs/busybox.net/BusyBox.html $(disp_doc) @@ -140,8 +148,7 @@ docs/BusyBox.html: docs/busybox.net/BusyBox.html docs/busybox.net/BusyBox.html: docs/busybox.pod $(Q)-mkdir -p docs/busybox.net - $(Q)-pod2html --noindex $< > \ - docs/busybox.net/BusyBox.html + $(Q)-pod2html --noindex $< > $@ $(Q)-rm -f pod2htm* # documentation, cross-reference