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 da1772e..a5e5278 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -36,6 +36,9 @@ default:
                        --output $@.tmp $<
                @mv -f $@.tmp $@
 
                        --output $@.tmp $<
                @mv -f $@.tmp $@
 
+%:             %.cpp
+               cpp -nostdinc -P <$< >$@.tmp && mv -f $@.tmp $@
+
 #%.gcode:      %.stl
 #              $(SKEINFORGE) $<
 
 #%.gcode:      %.stl
 #              $(SKEINFORGE) $<