From 4de4ca940930ccc67c60db85eabda68d1ef873ff Mon Sep 17 00:00:00 2001 From: "G. Branden Robinson" Date: Sun, 1 May 2022 02:47:03 +1000 Subject: [build]: Fix code style nits in Automake files. * doc/doc.am: Put spaces around (Auto)make variable assignments, for consistency with the rest of this .am file, and our others. * font/devpdf/devpdf.am (font/devpdf/build_font_files): Use shell '>' operator instead of touch(1). * font/devhtml/devhtml.am (font/devhtml/DESC): * font/devps/devps.am (font/devps/DESC): Construct target in temporary file, since doing so is a multi-step process, moving it to the target name when it is complete and usable by dependencies. Also fix indentation and trailing whitespace nits. --- font/devhtml/devhtml.am | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'font/devhtml') diff --git a/font/devhtml/devhtml.am b/font/devhtml/devhtml.am index d8f208821..49194ddb7 100644 --- a/font/devhtml/devhtml.am +++ b/font/devhtml/devhtml.am @@ -44,13 +44,15 @@ $(DEVHTMLFONTSFILES): $(devhtml_srcdir)/R.proto $(AM_V_GEN)$(MKDIR_P) `dirname $@` \ && $(RM) $@ \ && $(SHELL) $(GENFONTSSH) $(devhtml_srcdir)/R.proto \ - $(DEVHTMLRES) $(DEVHTMLCPI) `basename $@` > $@ + $(DEVHTMLRES) $(DEVHTMLCPI) `basename $@` >$@ font/devhtml/DESC: $(devhtml_srcdir)/DESC.proto $(AM_V_GEN)$(MKDIR_P) `dirname $@` \ && $(SHELL) $(GENDESCSH) $(devhtml_srcdir)/DESC.proto \ - $(DEVHTMLRES) $(DEVHTMLCPI) $(DEVHTMLLPI) $(DEVHTMLFONTS) > $@ \ - && echo "image_generator $(GHOSTSCRIPT)" >> $@ + $(DEVHTMLRES) $(DEVHTMLCPI) $(DEVHTMLLPI) $(DEVHTMLFONTS) \ + > $@.tmp \ + && echo "image_generator $(GHOSTSCRIPT)" >>$@.tmp \ + && mv $@.tmp $@ # Local Variables: -- cgit v1.2.1