]> granicus.if.org Git - graphviz/commitdiff
common: autotools: make awk crlf agnostic when generating svgcolor_lib only when...
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sat, 9 Oct 2021 13:58:46 +0000 (15:58 +0200)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Mon, 11 Oct 2021 05:41:17 +0000 (07:41 +0200)
lib/common/Makefile.am

index c440b688224049fe1d12b43cc832c00888af0de0..34b9b1ab03b8d0fec3b9c849d1a81903dda937fa 100644 (file)
@@ -43,8 +43,12 @@ color_lib : brewer_lib svgcolor_lib $(top_srcdir)/lib/common/color_names
 brewer_lib : $(top_srcdir)/lib/common/brewer_colors  $(top_srcdir)/awk/brewer.awk
        $(AWK) -f $(top_srcdir)/awk/brewer.awk $(top_srcdir)/lib/common/brewer_colors > brewer_lib
 
+if WITH_CYGWIN
+AWK_OPTIONS=-v RS="\r*\n"
+endif
+
 svgcolor_lib : $(top_srcdir)/lib/common/svgcolor_names  $(top_srcdir)/awk/svgcolor.awk
-        $(AWK) -v RS="\r*\n" -f $(top_srcdir)/awk/svgcolor.awk $(top_srcdir)/lib/common/svgcolor_names > svgcolor_lib
+        $(AWK) $(AWK_OPTIONS) -f $(top_srcdir)/awk/svgcolor.awk $(top_srcdir)/lib/common/svgcolor_names > svgcolor_lib
 
 htmllex.o htmllex.lo: htmllex.c htmllex.h htmlparse.h
 htmlparse.o htmlparse.lo: htmlparse.c htmlparse.h