Makefile.am: use wildcard instead of braces in macro expansion (the latter breaks...
authorUlya Trofimovich <skvadrik@gmail.com>
Thu, 7 Mar 2019 17:21:34 +0000 (17:21 +0000)
committerUlya Trofimovich <skvadrik@gmail.com>
Thu, 7 Mar 2019 17:21:34 +0000 (17:21 +0000)
re2c/Makefile.am

index 0231ab2764057d165046753fba85762e5e07c6fd..c5643e663db8cf4d6d85eb5554b684aff898378e 100644 (file)
@@ -254,7 +254,7 @@ CLEANFILES = \
                $(top_builddir)/$(RE2C) $(RE2CFLAGS) -o $@ $< && \
                cp $(@:cc=[ch]*) $(top_srcdir)/bootstrap/$(@D); \
        else \
-               cp $(top_srcdir)/bootstrap/$(@:cc=[ch]*) $(@D); \
+               cp $(top_srcdir)/bootstrap/$(@:cc=*) $(@D); \
        fi
 
 # cannot update bootstrap with distcheck (it makes srcdir readonly),
@@ -263,7 +263,7 @@ CLEANFILES = \
        $(AM_V_at)$(MKDIR_P) $(@D)
        $(AM_V_GEN) if test $(BISON) = "no"; \
        then \
-               cp $(top_srcdir)/bootstrap/$(@:cc={cc,h}) $(@D); \
+               cp $(top_srcdir)/bootstrap/$(@:cc=*) $(@D); \
        else \
                $(BISON) --output=$@ --defines=$(@:cc=h) $< && \
                if test -x $(RE2C); then \