Changeset 2725 in MondoRescue for branches/2.2.9/mindi-busybox/Makefile.custom
- Timestamp:
- Feb 25, 2011, 9:26:54 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mindi-busybox/Makefile.custom
r1765 r2725 3 3 # ========================================================================== 4 4 5 busybox.links: $(srctree)/applets/busybox.mkll $(objtree)/include/autoconf.h $(srctree)/include/applets.h5 busybox.links: $(srctree)/applets/busybox.mkll $(objtree)/include/autoconf.h include/applets.h 6 6 $(Q)-$(SHELL) $^ >$@ 7 7 … … 12 12 ifeq ($(CONFIG_INSTALL_APPLET_HARDLINKS),y) 13 13 INSTALL_OPTS:= --hardlinks 14 endif 15 ifeq ($(CONFIG_INSTALL_APPLET_SCRIPT_WRAPPERS),y) 16 ifeq ($(CONFIG_INSTALL_SH_APPLET_SYMLINK),y) 17 INSTALL_OPTS:= --sw-sh-sym 18 endif 19 ifeq ($(CONFIG_INSTALL_SH_APPLET_HARDLINK),y) 20 INSTALL_OPTS:= --sw-sh-hard 21 endif 22 ifeq ($(CONFIG_INSTALL_SH_APPLET_SCRIPT_WRAPPER),y) 23 INSTALL_OPTS:= --scriptwrapper 24 endif 14 25 endif 15 26 install: $(srctree)/applets/install.sh busybox busybox.links … … 36 47 endif 37 48 49 # Not very elegant: copies testsuite to objdir... 50 # (cp -pPR is POSIX-compliant (cp -dpR or cp -a would not be)) 51 .PHONY: check 52 .PHONY: test 38 53 check test: busybox busybox.links 39 bindir=$(objtree) srcdir=$(srctree)/testsuite SED="$(SED)" \ 40 $(SHELL) $(srctree)/testsuite/runtest $(if $(KBUILD_VERBOSE:0=),-v) 54 test -d $(objtree)/testsuite || cp -pPR $(srctree)/testsuite $(objtree) 55 bindir=$(objtree) srcdir=$(srctree)/testsuite \ 56 $(SHELL) -c "cd $(objtree)/testsuite && $(srctree)/testsuite/runtest $(if $(KBUILD_VERBOSE:0=),-v)" 41 57 42 58 .PHONY: release … … 44 60 cd ..; \ 45 61 rm -r -f busybox-$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION); \ 46 cp - abusybox busybox-$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION) && { \62 cp -pPR busybox busybox-$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION) && { \ 47 63 find busybox-$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)/ -type d \ 48 64 -name .svn \ 65 -print \ 66 -exec rm -r -f {} \; ; \ 67 find busybox-$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)/ -type d \ 68 -name .git \ 49 69 -print \ 50 70 -exec rm -r -f {} \; ; \ … … 80 100 .PHONY: stksizes 81 101 stksizes: busybox_unstripped 82 $(CROSS_COMPILE)objdump -d busybox_unstripped | $(srctree)/scripts/checkstack.pl $(ARCH) 102 $(CROSS_COMPILE)objdump -d busybox_unstripped | $(srctree)/scripts/checkstack.pl $(ARCH) | uniq 83 103 84 104 .PHONY: bigdata 85 105 bigdata: busybox_unstripped 86 $(CROSS_COMPILE)nm --size-sort busybox_unstripped | grep -vi ' [tr ] '106 $(CROSS_COMPILE)nm --size-sort busybox_unstripped | grep -vi ' [trw] ' 87 107 88 108 # Documentation Targets 89 109 .PHONY: doc 90 doc: docs/busybox.pod docs/BusyBox.txt docs/ BusyBox.1 docs/BusyBox.html110 doc: docs/busybox.pod docs/BusyBox.txt docs/busybox.1 docs/BusyBox.html 91 111 112 # FIXME: Doesn't belong here 113 cmd_doc = 114 quiet_cmd_doc = $(Q)echo " DOC $(@F)" 115 silent_cmd_doc = 116 disp_doc = $($(quiet)cmd_doc) 117 118 # sed adds newlines after "Options:" etc, 119 # this is needed in order to get good BusyBox.{1,txt,html} 92 120 docs/busybox.pod: $(srctree)/docs/busybox_header.pod \ 93 $(srctree)/include/usage.h \121 include/usage.h \ 94 122 $(srctree)/docs/busybox_footer.pod \ 95 $(srctree)/docs/autodocifier.pl123 applets/usage_pod 96 124 $(disp_doc) 97 125 $(Q)-mkdir -p docs 98 $(Q)-( cat $(srctree)/docs/busybox_header.pod ; \ 99 $(srctree)/docs/autodocifier.pl $(srctree)/include/usage.h ; \ 100 cat $(srctree)/docs/busybox_footer.pod ; ) > docs/busybox.pod 126 $(Q)-( \ 127 cat $(srctree)/docs/busybox_header.pod; \ 128 echo; \ 129 applets/usage_pod | sed 's/^[A-Za-z][A-Za-z ]*[a-z]:$$/&\n/'; \ 130 cat $(srctree)/docs/busybox_footer.pod; \ 131 ) > docs/busybox.pod 101 132 102 133 docs/BusyBox.txt: docs/busybox.pod … … 105 136 $(Q)-pod2text $< > $@ 106 137 107 docs/ BusyBox.1: docs/busybox.pod138 docs/busybox.1: docs/busybox.pod 108 139 $(disp_doc) 109 140 $(Q)-mkdir -p docs 110 $(Q)-pod2man --center=BusyBox --release="version $(VERSION)" \ 111 $< > $@ 141 $(Q)-pod2man --center=busybox --release="version $(KERNELVERSION)" $< > $@ 112 142 113 143 docs/BusyBox.html: docs/busybox.net/BusyBox.html … … 119 149 docs/busybox.net/BusyBox.html: docs/busybox.pod 120 150 $(Q)-mkdir -p docs/busybox.net 121 $(Q)-pod2html --noindex $< > \ 122 docs/busybox.net/BusyBox.html 151 $(Q)-pod2html --noindex $< > $@ 123 152 $(Q)-rm -f pod2htm* 124 153
Note:
See TracChangeset
for help on using the changeset viewer.