commit 34aa80ed625f1a513f591ad93eb8791b72efe96b
parent 9e1e34fe2f7f279aac174d5f59f1e9e677a83d2b
Author: Bharatvaj Hemanth <bharatvaj@yahoo.com>
Date: Thu, 11 Apr 2024 16:22:33 +0000
Fix Makefile under bmake
* Assign RM=rm -f is missing
* Use ${.ALLSRC} instead of $_ to prevent early expansion
Diffstat:
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/.gitignore b/.gitignore
@@ -5,6 +5,7 @@ hotbook
*.o
*.obj
*.a
+payredu
payredu.exe
tags
diff --git a/Makefile b/Makefile
@@ -20,7 +20,7 @@ CFLAGS += ${${CC}_CFLAGS}
out := ${${CC}_out}
# gmake hack
-^ ?= $_
+^ ?= ${.ALLSRC}
export LD_LIBRARY_PATH=.
@@ -51,5 +51,7 @@ format:
include tests/tests.mk
+RM?=rm -f
+
clean:
-${RM} payredu payredu.exe *.a *.so *.o *.obj hotbook $(TESTS)