X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=Makefile.custom;h=d9a2367ab317e2bf08600b8912c81b04f40c9123;hb=c297ea97e288da16216d5c121ddefa7b61923847;hp=a4db1417208c8975bb95e327016070071048c8c9;hpb=ab801874f852312787c049272c20b14e06ed8195;p=oweals%2Fbusybox.git diff --git a/Makefile.custom b/Makefile.custom index a4db14172..d9a2367ab 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,18 @@ 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 + cmd_doc = + quiet_cmd_doc = $(Q)echo " DOC $(@F)" +silent_cmd_doc = +disp_doc = $($(quiet)cmd_doc) + docs/busybox.pod: $(srctree)/docs/busybox_header.pod \ $(srctree)/include/usage.h \ $(srctree)/docs/busybox_footer.pod \