C++ make utility
Go to file
2019-11-13 07:45:03 -06:00
docs Updated readme 2019-11-11 11:10:51 -06:00
test Updated .PHONY 2019-11-11 11:06:22 -06:00
Makefile Targets & dependencies are expanded before processed 2019-11-12 13:18:17 -06:00
readme.md Targets & dependencies are expanded before processed 2019-11-12 13:18:17 -06:00
smake.cc Windows file test 2019-11-12 13:34:47 -06:00
TODO Updated TODO 2019-11-13 07:45:03 -06:00

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.