[Github-comments] [geany-plugins] Automake (#277)

Colomban Wendling notifications at xxxxx
Tue Dec 1 17:19:08 UTC 2015


BTW, the unparallelized case can be optimized by only recursing first if Make was passed a `-j` option:
```diff
diff --git a/Makefile.am b/Makefile.am
index 8cf1634..9023c10 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -176,3 +176,12 @@ EXTRA_DIST = \
        wscript \
        README.waf \
        README.windows
+
+
+all-recursive: $(SUBDIRS)
+.PHONY: $(SUBDIRS)
+
+$(SUBDIRS):
+       @if (target_option=j; $(am__make_running_with_option)); then \
+               $(am__cd) $@ && $(MAKE) $(AM_MAKEFLAGS) all; \
+       fi
```

---
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/pull/277#issuecomment-161038082
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20151201/649e4034/attachment.html>


More information about the Github-comments mailing list