From: Ian Jackson Date: Sat, 16 Sep 2023 11:40:48 +0000 (+0100) Subject: Introduce o alias for capturing stdout to $@ X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=7a8a9f98245fefa4368f86f8a8b14901c4742b5a;p=reprap-play.git Introduce o alias for capturing stdout to $@ Signed-off-by: Ian Jackson --- diff --git a/reprap-objects.make b/reprap-objects.make index f212f97..d47a23c 100644 --- a/reprap-objects.make +++ b/reprap-objects.make @@ -41,6 +41,7 @@ stls: $(addsuffix .auto.stl, $(AUTO_TOPLEVELS)) $(MAKE) $(addsuffix .auto.stl, $(shell $(DUTILS)/toplevel-find $*)) i=mv -f $@.tmp $@ +o= >$@.tmp && $i -include .*.d @@ -54,19 +55,19 @@ i=mv -f $@.tmp $@ AUTOBASE=$(shell echo $(1) | perl -pe 's/,\w+\.auto$$//') %: %.cpp - cpp -nostdinc -P <$< >$@.tmp && $i + cpp -nostdinc -P <$< $o funcs.scad: diziet-utils/funcs.scad.cpp - cpp -nostdinc -P $< >$@.tmp && $i + cpp -nostdinc -P $< $o %.gcode: manual-gcode-generator %.m-g - $(CWD)/$^ >$@.tmp && $i + $(CWD)/$^ $o %.dxf: %.eps pstoedit -dt -f "dxf: -polyaslines -mm" $< $@ %: %.pl - ./$< >$@.tmp && $i + ./$< $o %: %.m4 $(M4) -P >$@.tmp $< && $i