chiark / gitweb /
Makefile: know how to cpp things
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 15 Feb 2014 18:15:03 +0000 (18:15 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 15 Feb 2014 18:15:03 +0000 (18:15 +0000)
Makefile

index da1772ea80f62f00ea0e940920c3f40e455042d7..a5e5278c54d9c6d643999ccf3ac443a5e1944f50 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -36,6 +36,9 @@ default:
                        --output $@.tmp $<
                @mv -f $@.tmp $@
 
+%:             %.cpp
+               cpp -nostdinc -P <$< >$@.tmp && mv -f $@.tmp $@
+
 #%.gcode:      %.stl
 #              $(SKEINFORGE) $<