[hackers] [dvtm][PATCH] Make compilation works with bsd make

From: Josuah Demangeon <mail_AT_josuah.net>
Date: Sat, 23 Dec 2017 13:11:09 +0100

BSD make does not understand the $^ macro. Using a hardcoded string
like "dvtm-editor.c" does not add a lot of cost and make compilation not
require gmake on OpenBSD and the like.
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 818ca0a..8fdda93 100644
--- a/Makefile
+++ b/Makefile
_AT_@ -17,7 +17,7 @@ dvtm: config.h config.mk *.c *.h
 	${CC} ${CFLAGS} ${SRC} ${LDFLAGS} ${LIBS} -o $_AT_
 
 dvtm-editor: dvtm-editor.c
-	${CC} ${CFLAGS} $^ ${LDFLAGS} -o $_AT_
+	${CC} ${CFLAGS} dvtm-editor.c ${LDFLAGS} -o $_AT_
 
 man:
 	_AT_for m in ${MANUALS}; do \
-- 
2.14.2
Received on Sat Dec 23 2017 - 13:11:09 CET

This archive was generated by hypermail 2.3.0 : Sat Dec 23 2017 - 13:12:27 CET