C++ make utility
Go to file
2020-04-07 12:32:48 -05:00
docs Updated readme 2019-11-11 11:10:51 -06:00
test Updated .PHONY 2019-11-11 11:06:22 -06:00
.travis.yml Updated .travis.yml 2020-01-16 17:43:29 -06:00
Makefile Makefile: BSD smake compatibility 2020-01-29 15:26:05 -06:00
Makefile.bsd Makefile.bsd: added to bootstrap on BSDs 2020-01-29 15:15:15 -06:00
readme.md Updated readme.md 2020-01-15 10:09:42 -06:00
smake.cc smake.cc: added $(MAKE) built-in macro set to smake 2020-04-07 12:32:48 -05:00
TODO Updated TODO 2019-11-13 07:45:03 -06:00

Build Status

smake

Make utility that can list the targets contained in the makefile. Also defines $(OS) for Windows_NT or GNU/Linux.

smake 0.5.3 
Build Nov 12 2019 13:16:24
usage: smake [options] [target]
-h, --help			This help
-v, --version			Show version info
-f, --file FILE			Use FILE as makefile
-c				Set target to 'clean'
-p				Print internal data
-P				Alias to '-np'
-R, --no-builtin-variables	Disable built-in macros
-B				Unconditionally build all
-n, --just-print		Print rules (do not execute)

Features include

  • Single target

  • Silent commands/rules (prefixed with @)

  • Multiple target dependencies

  • Dry-run (show rules but don't execute them)

  • Use -c to set target to clean

  • Use -p to print rules and macros defined in makefile (or built-in)

  • ifeq, ifdef conditionals supported

Notes

For now only one build target can be specified at a time.

See the main Makefile for an example of what Smake can do.