Module Name:    src
Committed By:   rillig
Date:           Mon Oct  5 15:11:37 UTC 2020

Modified Files:
        src/usr.bin/make: Makefile

Log Message:
make(1): allow easy creation of preprocessed source and assembler

To be used during development, to see how changes in the source code
affect the generated machine code.


To generate a diff of this commit:
cvs rdiff -u -r1.99 -r1.100 src/usr.bin/make/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/make/Makefile
diff -u src/usr.bin/make/Makefile:1.99 src/usr.bin/make/Makefile:1.100
--- src/usr.bin/make/Makefile:1.99	Tue Sep  1 17:12:30 2020
+++ src/usr.bin/make/Makefile	Mon Oct  5 15:11:37 2020
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.99 2020/09/01 17:12:30 rillig Exp $
+#	$NetBSD: Makefile,v 1.100 2020/10/05 15:11:37 rillig Exp $
 #	@(#)Makefile	5.2 (Berkeley) 12/28/90
 
 PROG=	make
@@ -189,3 +189,10 @@ retest:
 	rm -f *.gcov *.gcda
 .endif
 	${.MAKE} test
+
+# Just out of curiosity, during development.
+.SUFFIXES: .cpre .casm
+.c.cpre:
+	${COMPILE.c:S,^-c$,-E,} ${.IMPSRC} -o ${.TARGET}
+.c.casm:
+	${COMPILE.c:S,^-c$,-S,} ${.IMPSRC} -o ${.TARGET}

Reply via email to