X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;ds=sidebyside;f=Makefile.custom;h=140ff45c25b22f723c7ec1f18e842eaeb99d3e55;hb=d4b719878f5a08986d0a3dc493aad90d4466752e;hp=a4db1417208c8975bb95e327016070071048c8c9;hpb=ab801874f852312787c049272c20b14e06ed8195;p=oweals%2Fbusybox.git diff --git a/Makefile.custom b/Makefile.custom index a4db14172..140ff45c2 100644 --- a/Makefile.custom +++ b/Makefile.custom @@ -46,15 +46,20 @@ ifneq ($(strip $(DO_INSTALL_LIBS)),n) done endif +# Not very elegant: copies testsuite to objdir... +# (cp -pPR is POSIX-compliant (cp -dpR or cp -a would not be)) +.PHONY: check +.PHONY: test check test: busybox busybox.links - bindir=$(objtree) srcdir=$(srctree)/testsuite SED="$(SED)" \ - $(SHELL) $(srctree)/testsuite/runtest $(if $(KBUILD_VERBOSE:0=),-v) + test -d $(objtree)/testsuite || cp -pPR $(srctree)/testsuite $(objtree) + bindir=$(objtree) srcdir=$(srctree)/testsuite \ + $(SHELL) -c "cd $(objtree)/testsuite && $(srctree)/testsuite/runtest $(if $(KBUILD_VERBOSE:0=),-v)" .PHONY: release release: distclean cd ..; \ rm -r -f busybox-$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION); \ - cp -a busybox busybox-$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION) && { \ + cp -pPR busybox busybox-$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION) && { \ find busybox-$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)/ -type d \ -name .svn \ -print \ @@ -94,12 +99,16 @@ stksizes: busybox_unstripped .PHONY: bigdata bigdata: busybox_unstripped - $(CROSS_COMPILE)nm --size-sort busybox_unstripped | grep -vi ' [tr] ' + $(CROSS_COMPILE)nm --size-sort busybox_unstripped | grep -vi ' [trw] ' # Documentation Targets .PHONY: doc doc: docs/busybox.pod docs/BusyBox.txt docs/BusyBox.1 docs/BusyBox.html +# FIXME: Doesn't belong here +disp_doc = \ + @$(if $(quiet),echo " DOC $(@F)") + docs/busybox.pod: $(srctree)/docs/busybox_header.pod \ $(srctree)/include/usage.h \ $(srctree)/docs/busybox_footer.pod \