maint.mk: minor simplification.
authorAkim Demaille <akim@lrde.epita.fr>
Tue, 17 Jul 2012 08:31:35 +0000 (10:31 +0200)
committerAkim Demaille <akim@lrde.epita.fr>
Tue, 17 Jul 2012 09:36:28 +0000 (11:36 +0200)
* top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
for default values.

ChangeLog
top/maint.mk

index b073b2a..27ea1ef 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
+
+       maint.mk: minor simplication.
+       * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
+       for default values.
+
 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
 
        gitlog-to-changelog: VPATH build issues
index e527c61..d5af750 100644 (file)
@@ -61,7 +61,7 @@ endif
 # (i.e., with no $(srcdir) prefix), this definition is careful to
 # remove any $(srcdir) prefix, and to restore what it removes.
 _sc_excl = \
-  $(if $(exclude_file_name_regexp--$@),$(exclude_file_name_regexp--$@),^$$)
+  $(or $(exclude_file_name_regexp--$@),^$$)
 VC_LIST_EXCEPT = \
   $(VC_LIST) | sed 's|^$(_dot_escaped_srcdir)/||' \
        | if test -f $(srcdir)/.x-$@; then grep -vEf $(srcdir)/.x-$@; \