aboutsummaryrefslogtreecommitdiff
path: root/Makefile
AgeCommit message (Collapse)Author
2019-10-11Tweak clean to delete "scripts/cross.sh all" logs.Rob Landley
These really should go in generated, but generated should be $GENERATED and I need to find a way to set that so Makefile and scripts/make.sh can use it from the same source. Right now cross.sh isn't sourcing .configure and I don't really want to add it for this, so...
2019-09-07Fix up clean so we clean up after toybox-$TARGET and can do cross.sh all.Rob Landley
2019-08-22Add scripts/mkroot.sh and makefile changes for "make root".Rob Landley
Not in help text yet. Needs sh and route enabled in pending to do much. todo: work through the scripts/install.sh $PENDING list and add native toolchain support.
2019-08-22Quiet "make clean" so it doesn't fill a whole screen with output.Rob Landley
2019-08-02fix parallel make build failurePatrick Oppenlander
make: *** No rule to make target 'generated/Config.probed', needed by 'Config.in'. Stop. make: *** Waiting for unfinished jobs....
2019-08-02fix typo in MakefilePatrick Oppenlander
2018-10-27Fix "make distclean defconfig toybox" all on one line (good of $CROSS_COMPILERRob Landley
changed), better error message when .config missing.
2018-06-03call strip as $STRIPFrancesco Valla
This is useful e.g. for cross toolchains that define $CC and $STRIP instead of $CROSS_COMPILE.
2018-03-23Fix break caused by removing toys/e2fs.h.Rob Landley
2018-01-10Move make help text out of Makefile.Rob Landley
2017-12-19Fix make bloatcheck dependencies (pointed out by Patrick Oppenlander).Rob Landley
2017-01-04Tweak install_airlock help text.Rob Landley
2016-10-02Add install_airlock target for hermetic build environment setup, and rebuildRob Landley
headers during install to make other install targets robust against single command builds between "make" and "make install" of multiplexer version.
2016-09-04Add comment so I don't undo and then redo a thing again.Rob Landley
2016-04-20Replace list_working with just list, "make list list_pending" shows combined ↵Rob Landley
list.
2016-03-23Redo build stuff in response to Andy Chu's suggestions.Rob Landley
Toybox single binaries are now made directly with the new name instead of stomping toybox and getting renamed. Unstripped files now live in generated/unstripped. Target to run all tests is now "make tests" to avoid conflict with "make test". .singleconfig now has .PHONY: entries for all test_$NAME targets. Default install location changed to /usr/toybox, code.html now says how to change it (set $PREFIX). scripts/install.sh --uninstall works now. (And you get to keep the pieces!)
2016-03-01Fix "make help" again.Elliott Hughes
Same missing quote at end of line as last time. The new additions to the help are very useful though.
2016-02-19Add test_COMMAND for each command, update "make help" to describe TEST_HOSTRob Landley
and VERBOSE=fail, and fix a quote mismatch.
2016-02-14Add "make list", rename make working->list_working and pending->list_pending,Rob Landley
and filter out commands that aren't nofork but aren't installed either (toyflags 0, I.E. recognized aliases like "-sh" called from login).
2016-02-10Wean scripts/install.c off toys.h so cross compiling less brittle.Rob Landley
2016-02-07Add "make ls" and friends targets, with "make working" and "make pending" lists.Rob Landley
2016-02-03Commit d20b9ff3ee0f fixed most of yocto building, but there was a leftoverRob Landley
(redundant) file built from the makefile (which _should_ just be a wrapper for scripts/make.sh and scripts/install.sh).
2015-10-05Fix allnoconfig. (Exporting HOSTCC before HOSTCC?=cc caused a problem.)Rob Landley
2015-10-04Export makefile variables so you can say "make CROSS_COMPILE=blah-" as well ↵Rob Landley
as "CROSS_COMPILE=blah- make".
2015-03-28Fix an obvious typo in Makefile.Elliott Hughes
2015-02-14Move guts of "make change" to scripts/change.sh, don't try to build sh or ↵Rob Landley
help standalone. sh builtin commands need multiplexer, help describes other enabled commands.
2015-02-07Clean up the output of "make change".Rob Landley
2014-12-13Add "make help" entry for "make change".Rob Landley
2014-11-28Add "change" subdirectory to make clean.Rob Landley
2014-11-28Add "make change" target to build the big toybox binary as a bunch of little ↵Rob Landley
ones (in the "change" subdirectory), and tweak scripts/make.sh to avoid redundant work when rebuilding.
2014-09-20Delete generated/README.txt (the contents are in code.html now) so clean can ↵Rob Landley
just remove the "generated" directory entirely.
2014-09-20Forgot to check in the updated makefile when I moved the testsuite.Rob Landley
(Did you know you can test individual commands with scripts/test.sh command? Now you do...)
2014-09-11Create a generated/build.sh with a single compiler command line to rebuild ↵Rob Landley
the toybox_unstripped binary using the existing generated/*.h files. This way we can snapshot the generated/*.{h,sh} from a defconfig build into a "shipped" directory or something, and then people can maybe build on crazy crippled environments like pcbsd that haven't got gmake and put bash under /usr/local so none of the #!/scripts can find it. This solves at least part of the "toybox can build with itself but you need to build toybox first to have the tools to run the build scripts" problem. Next up: work out the minimal config to provide the build tools needed to run an actual build. (This should, eventually, include a "make" command if freebsd's kernel is going to refuse to build with netbsd's "make" and we don't just write off the whole thing as crazy. But it probably shouldn't include commands that #include <linux/*.h> if we are trying to make that work.)
2014-09-09Make tweaks: collate generated/*.o files into their own subdirectory, add ↵Rob Landley
PIPEFAIL for better error reporting, and simpler regex to select toys/*/*.c list based on NEWTOY/OLDTOY macros.
2014-08-10Update clean to clean up after new parallel build.Rob Landley
2014-04-15Probes for O_NOFOLLOW that compile and run something aren't compatible with ↵Rob Landley
cross compiling, so just #define it to 0 if it's not in fcntl.h where posix-2008 says.
2014-02-28Fix two bugs reported by Ashwini Sharma.Rob Landley
2014-01-03Replace python help converter with C implementation.Rob Landley
2013-11-10distclean was missing singleconfig.old.Rob Landley
2013-10-03Switch flag generation from shell to C.Rob Landley
This should actually generate FLAG_longopt 0 #defines for disabled bare longopts (ala ls without --color). Put temporary executables under "generated" (including instlist for install).
2013-08-30Add scripts/single.sh to build individual non-multiplexed standalone commands.Rob Landley
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.
2013-08-12More grep cleanup, and make OPTSTR_command macros for use with OLDTOY()Rob Landley
2012-08-25Move commands into "posix", "lsb", and "other" menus/directories.Rob Landley
2012-06-18Replace CCFLAGS with description of how to add flags to HOSTCC.Rob Landley
2012-02-28Now that generated/Config.probed is its own file, add it to build dependencies.Rob Landley
2012-02-21Replace GPL python debug script with BSD shell script.Rob Landley
2012-02-19Set HOSTCC only if it isn't already set as an environment variable.Rob Landley
2012-02-04Add a basic README and an example to "make help".Rob Landley
2012-02-03Add autodetect for container support.Rob Landley
2011-12-28Fix "make help".Rob Landley