Allow for a modules/Makefile.local

This permits other submodules to be integrated into a build
without having to edit the Makefile itself.
This commit is contained in:
Andrew Johnson
2017-11-29 17:22:48 -06:00
parent f3d0ce0fb9
commit 09328e42c9
2 changed files with 6 additions and 2 deletions

1
.gitignore vendored
View File

@@ -8,6 +8,7 @@
/templates/
/configure/*.local
/modules/RELEASE.local
/modules/Makefile.local
O.*/
/QtC-*
*.orig

View File

@@ -36,8 +36,11 @@ pva2pva_DEPEND_DIRS = pvAccess
SUBMODULES += example
example_DEPEND_DIRS = pva2pva pvaClient
# Add any checked-out submodules to DIRS
DIRS += $(subst /,,$(dir $(wildcard $(addsuffix /Makefile, $(SUBMODULES)))))
# Allow sites to add extra submodules
-include Makefile.local
# Add only checked-out submodules to DIRS
DIRS += $(subst /Makefile,,$(wildcard $(addsuffix /Makefile, $(SUBMODULES))))
include $(TOP)/configure/RULES_DIRS