]> gitweb.michael.orlitzky.com - charm-bypass.git/commitdiff
Makefile.am: factor our the "scour" command into a macro
authorMichael Orlitzky <michael@orlitzky.com>
Fri, 3 Nov 2023 14:22:23 +0000 (10:22 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Fri, 3 Nov 2023 14:30:45 +0000 (10:30 -0400)
Makefile.am

index 0e76e8c76e39cafaffd547ddaed31752d86e377b..2ddde991e5f20a2012c5f7379f9b7c67e50883fa 100644 (file)
@@ -25,6 +25,13 @@ PRECIOUS_IDS =  \
   tickettime    \
   zone
 
+SCOUR = @SCOUR@ --enable-id-stripping \
+                --enable-comment-stripping \
+                --remove-descriptive-elements \
+                --no-renderer-workaround \
+                --no-line-breaks \
+                --error-on-flowtext
+
 # Optimize our SVG once using XSL, to catch a few things
 # that "scour" misses.
 tableau.min.svg: tableau.svg svgclean.xsl
@@ -33,15 +40,9 @@ tableau.min.svg: tableau.svg svgclean.xsl
 # Optimize our SVG again, and remove its XML prologue so that it can
 # be included directly into the HTML document.
 tableau.min.min.svg: tableau.min.svg
-       @SCOUR@ --protect-ids-list=$$(echo $(PRECIOUS_IDS) | tr ' ' ',') \
-                --enable-id-stripping \
-                --enable-comment-stripping \
-                --remove-descriptive-elements \
-                --no-renderer-workaround \
-                --strip-xml-prolog \
-                --no-line-breaks \
-                --error-on-flowtext \
-                $< > $@
+       $(SCOUR) --protect-ids-list=$$(echo $(PRECIOUS_IDS) | tr ' ' ',') \
+                 --strip-xml-prolog \
+                 $< > $@
 
 # Use FontForge to convert the sfd source files to woff2.
 .sfd.woff2: