From 7a8a9f98245fefa4368f86f8a8b14901c4742b5a Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 16 Sep 2023 12:40:48 +0100 Subject: [PATCH 1/1] Introduce o alias for capturing stdout to $@ Signed-off-by: Ian Jackson --- reprap-objects.make | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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 -- 2.30.2