diff Makefile @ 1032:40d0c96a8e89 draft

Add scripts/single.sh to build individual non-multiplexed standalone commands. Alas, you can't quite do this yet: make defconfig make for i in $(./toybox) do echo $i PREFIX=singles/ scripts/single.sh $i || break done Because the OLDTOY() aliases for commands won't build without the base command. And I can't just skip them because chown/chmod or mv/cp aren't the same thing.
author Rob Landley <rob@landley.net>
date Fri, 30 Aug 2013 01:53:31 -0500
parents 0af2375a8ef8
children 1c15ba60aa64
line wrap: on
line diff
--- a/Makefile	Thu Aug 29 17:55:46 2013 -0500
+++ b/Makefile	Fri Aug 30 01:53:31 2013 -0500
@@ -3,7 +3,8 @@
 
 all: toybox
 
-toybox toybox_unstripped: .config *.[ch] lib/*.[ch] toys/*.h toys/*/*.c scripts/*.sh
+KCONFIG_CONFIG ?= .config
+toybox toybox_unstripped: $(KCONFIG_CONFIG) *.[ch] lib/*.[ch] toys/*.h toys/*/*.c scripts/*.sh
 	scripts/make.sh
 
 .PHONY: clean distclean baseline bloatcheck install install_flat \
@@ -43,7 +44,7 @@
 	rm -rf toybox toybox_unstripped generated/config.h generated/Config.in \
 		generated/newtoys.h generated/globals.h instlist testdir \
 		generated/Config.probed generated/oldtoys.h \
-		generated/portability.h
+		generated/portability.h .singleconfig
 
 distclean: clean
 	rm -f toybox_old .config* generated/help.h