<pre style='margin:0'>
Ken (kencu) pushed a commit to branch master
in repository macports-legacy-support.

</pre>
<p><a href="https://github.com/macports/macports-legacy-support/commit/8306c5f1510f70261ee54a97dedf80a0f28b4f39">https://github.com/macports/macports-legacy-support/commit/8306c5f1510f70261ee54a97dedf80a0f28b4f39</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 8306c5f1510f70261ee54a97dedf80a0f28b4f39
</span>Author: Christian Cornelssen <ccorn@1tein.de>
AuthorDate: Sat Jan 26 00:33:28 2019 +0100

<span style='display:block; white-space:pre;color:#404040;'>    Makefile: Improved globbing of header filenames and header subdirs.
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    This fixes an inconsequential bug that excluded include/cmath from ALLHEADERS
</span><span style='display:block; white-space:pre;color:#404040;'>    and eliminates the need for explicit enumeration of include subdirs.
</span>---
 Makefile | 16 ++++++++++------
 1 file changed, 10 insertions(+), 6 deletions(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/Makefile b/Makefile
</span><span style='display:block; white-space:pre;color:#808080;'>index e390d50..3cc72a7 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/Makefile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/Makefile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -45,7 +45,11 @@ RMDIR            = sh -c 'for d; do test ! -d "$$d" || rmdir -p "$$d"; done' rmd
</span> 
 SRCDIR           = src
 SRCINCDIR        = include
<span style='display:block; white-space:pre;background:#ffe0e0;'>-ALLHEADERS      := $(wildcard $(SRCINCDIR)/*.h $(SRCINCDIR)/*/*.h $(SRCDIR)/*.h)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Use VAR := $(shell CMD) instead of VAR != CMD to support old make versions
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+FIND_LIBHEADERS := find $(SRCINCDIR) -type f \( -name '*.h' -o \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                                             \( -name 'c*' ! -name '*.*' \) \)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+LIBHEADERS      := $(shell $(FIND_LIBHEADERS))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ALLHEADERS      := $(LIBHEADERS) $(wildcard $(SRCDIR)/*.h)
</span> LIBOBJECTS      := $(patsubst %.c,%.o,$(wildcard $(SRCDIR)/*.c))
 
 TESTDIR          = test
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -87,11 +91,11 @@ $(TESTRUNS): $(TESTRUNPREFIX)%: $(TESTNAMEPREFIX)%
</span> install: install-headers install-lib
 
 install-headers:
<span style='display:block; white-space:pre;background:#ffe0e0;'>-        $(MKINSTALLDIRS) $(DESTDIR)$(PKGINCDIR)/sys
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-   $(MKINSTALLDIRS) $(DESTDIR)$(PKGINCDIR)/xlocale
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-   $(INSTALL_DATA) $(wildcard include/*.h include/c*) $(DESTDIR)$(PKGINCDIR)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-   $(INSTALL_DATA) $(wildcard include/sys/*)     $(DESTDIR)$(PKGINCDIR)/sys
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-   $(INSTALL_DATA) $(wildcard include/xlocale/*) $(DESTDIR)$(PKGINCDIR)/xlocale
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+   $(MKINSTALLDIRS) $(patsubst $(SRCINCDIR)/%,$(DESTDIR)$(PKGINCDIR)/%,\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                               $(sort $(dir $(LIBHEADERS))))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+   for h in $(patsubst $(SRCINCDIR)/%,%,$(LIBHEADERS)); do \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     $(INSTALL_DATA) $(SRCINCDIR)/"$$h" $(DESTDIR)$(PKGINCDIR)/"$$h"; \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+   done
</span> 
 install-lib: $(BUILDLIBPATH)
        $(MKINSTALLDIRS) $(DESTDIR)$(LIBDIR)
</pre><pre style='margin:0'>

</pre>