build: Use SCCMAKE instead of SMAKE - scc - simple c99 compiler
HTML git clone git://git.simple-cc.org/scc
DIR Log
DIR Files
DIR Refs
DIR Submodules
DIR README
DIR LICENSE
---
DIR commit 5900420c8566844b1e379dc62adb0467142f56d6
DIR parent 1f6bfcd9114a69b495191dbc3d96c27e1468a8f9
HTML Author: Roberto E. Vargas Caballero <k0ga@shike2.net>
Date: Mon, 12 May 2025 22:28:28 +0200
build: Use SCCMAKE instead of SMAKE
It makes more clear what the macro is intended and it makes
easier to override it to use some other make in case of being
needed (for example to get parallel builds).
Diffstat:
M Makefile | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
---
DIR diff --git a/Makefile b/Makefile
@@ -1,6 +1,6 @@
.POSIX:
-SMAKE = $$PWD/scc-make
+SCCMAKE = $$PWD/scc-make
all: deps
@@ -8,16 +8,16 @@ scc-make:
$(CC) -o $@ src/cmd/scc-make/*.c
deps: scc-make
- +@$(SMAKE) dep
+ +@$(SCCMAKE) dep
touch $@;\
all dep tests install uninstall: scc-make check_config FORCE
- +@$(SMAKE) -f main.mk $@
+ +@$(SCCMAKE) -f main.mk $@
check_config: scc-make FORCE
@if ! test -f config.mk;\
then\
- $(SMAKE) config;\
+ $(SCCMAKE) config;\
fi
config: scc-make FORCE
@@ -29,10 +29,10 @@ config: scc-make FORCE
mkdir -p bin
$(CC) -o scc-make src/cmd/scc-make/*.c
./scripts/config
- @$(SMAKE) -f main.mk config
+ @$(SCCMAKE) -f main.mk config
config-musl: scc-make FORCE
- $(SMAKE) LIBPROFILE=musl config
+ $(SCCMAKE) LIBPROFILE=musl config
gcc -v 2>&1 |\
sed -En '/COLLECT_LTO_WRAPPER=/ s/.*=(.*)\/lto-wrapper/\1/p' |\
(read -r path; \