Skip to content
This repository was archived by the owner on Nov 10, 2021. It is now read-only.

Commit b30c3ad

Browse files
committed
Leverage nlbuild-autotools-1.5.0 and allow on-demand remote synchronization of nlassert or nlunit-test from an external repository when '--with-nlassert' or '--with-nlunit_test=internal', respectively, are asserted.
Ensure 'distcheck' passes successfully by making third_party user-writable. Ensure 'distcleancheck' passes by removing any git-synchronized remote repos specified in 'repos.conf'.
1 parent 194893b commit b30c3ad

File tree

1 file changed

+18
-14
lines changed

1 file changed

+18
-14
lines changed

Makefile.am

+18-14
Original file line numberDiff line numberDiff line change
@@ -23,21 +23,8 @@ include $(abs_top_nlbuild_autotools_dir)/automake/pre.am
2323

2424
AM_MAKEFLAGS = --no-print-directory
2525

26-
# Always package (e.g. for 'make dist') these subdirectories.
27-
28-
DIST_SUBDIRS = \
29-
third_party \
30-
include \
31-
src \
32-
tests \
33-
doc \
34-
$(NULL)
35-
36-
37-
38-
# Unconditionally build these subdirectories.
39-
4026
SUBDIRS = \
27+
third_party \
4128
include \
4229
src \
4330
tests \
@@ -48,12 +35,14 @@ EXTRA_DIST = \
4835
CHANGES \
4936
CONTRIBUTING.md \
5037
LICENSE \
38+
Makefile-bootstrap \
5139
README.md \
5240
.default-version \
5341
.travis.yml \
5442
bootstrap \
5543
bootstrap-configure \
5644
$(srcdir)/third_party/nlbuild-autotools \
45+
repos.conf \
5746
$(NULL)
5847

5948
BUILT_SOURCES = \
@@ -155,10 +144,25 @@ $(distdir)/.dist-version: $(builddir)/.local-version force
155144
$(distdir)/.dist-version $(builddir)/.local-version:
156145
$(call check-file,$(@F))
157146

147+
#
148+
# When we run 'distcheck' and --with-nlassert or --with-nlunit_test
149+
# default to 'internal', the nlbuild-autotools infrastructure will
150+
# attempt to create git paths to manage the nlunit-test repo. Two
151+
# directories need to be writable to facilitate this.
152+
#
153+
DISTCHECK_CONFIGURE_FLAGS=`chmod u+w .. ../third_party`
154+
158155
dist distcheck: $(BUILT_SOURCES)
159156

160157
dist-hook: $(distdir)/.dist-version
161158

159+
#
160+
# Ensure any locally synchronized repositories defined by 'repos.conf'
161+
# are cleaned up.
162+
#
163+
distclean-local:
164+
$(MAKE) -C $(srcdir) -f Makefile-bootstrap clean-repos
165+
162166
#
163167
# Top-level convenience target for making a documentation-only
164168
# distribution whose results appear at the top level of the build tree

0 commit comments

Comments
 (0)