[projects/pld-builder.new] make: let 'make compile' fail on syntax errors
arekm
arekm at pld-linux.org
Wed Aug 12 11:45:51 CEST 2026
commit 5f5861c0aa9553eac33213f7843e0bcf9df29a2c
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Wed Aug 12 09:30:30 2026 +0200
make: let 'make compile' fail on syntax errors
compile_dir()'s result was discarded, so a broken module was only screen noise.
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/Makefile b/Makefile
index 26f13a3..8b22444 100644
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,7 @@ SNAP := $(shell date +%Y%m%d)
all: compile
compile:
- python -c "import compileall; compileall.compile_dir('.')"
+ python -c "import compileall, sys; sys.exit(0 if compileall.compile_dir('.') else 1)"
clean:
find -name '*.pyc' | xargs rm -f
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/projects/pld-builder.new.git/commitdiff/44916a7a9112928736ec2b65b4fa58a90bc5828c
More information about the pld-cvs-commit
mailing list