diff mbox series

[ndctl,2/4] ndctl/build: Ensure header and other misc files are listed.

Message ID 157602779685.1290519.18200044670741501676.stgit@dwillia2-desk3.amr.corp.intel.com (mailing list archive)
State New, archived
Headers show
Series [ndctl,1/4] ndctl/build: Do not use `check-news` when `NEWS` file is absent entirely. | expand

Commit Message

Dan Williams Dec. 11, 2019, 1:29 a.m. UTC
From: Auke Kok <auke-jan.h.kok@intel.com>

Otherwise `make distcheck` is guaranteed to fail as BoM lists will
be incomplete to compile the sources properly.

Signed-off-by: Auke Kok <auke-jan.h.kok@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
---
 Documentation/daxctl/Makefile.am |    2 ++
 Documentation/ndctl/Makefile.am  |    2 ++
 Makefile.am                      |   12 +++++++++++-
 daxctl/Makefile.am               |    3 ++-
 daxctl/lib/Makefile.am           |    2 +-
 ndctl/Makefile.am                |   12 +++++++++++-
 ndctl/lib/Makefile.am            |    9 ++++++++-
 test/Makefile.am                 |    2 ++
 8 files changed, 39 insertions(+), 5 deletions(-)
diff mbox series

Patch

diff --git a/Documentation/daxctl/Makefile.am b/Documentation/daxctl/Makefile.am
index 37c3bdee265d..7696e23cc9c0 100644
--- a/Documentation/daxctl/Makefile.am
+++ b/Documentation/daxctl/Makefile.am
@@ -33,6 +33,8 @@  man1_MANS = \
 	daxctl-online-memory.1 \
 	daxctl-offline-memory.1
 
+EXTRA_DIST = $(man1_MANS)
+
 CLEANFILES = $(man1_MANS)
 
 XML_DEPS = \
diff --git a/Documentation/ndctl/Makefile.am b/Documentation/ndctl/Makefile.am
index fb46d7c87938..659cb32f0878 100644
--- a/Documentation/ndctl/Makefile.am
+++ b/Documentation/ndctl/Makefile.am
@@ -57,6 +57,8 @@  man1_MANS = \
 	ndctl-load-keys.1 \
 	ndctl-wait-overwrite.1
 
+EXTRA_DIST = $(man1_MANS)
+
 CLEANFILES = $(man1_MANS)
 
 .ONESHELL:
diff --git a/Makefile.am b/Makefile.am
index 8d10a10ad1ee..95950d4f708e 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -13,6 +13,10 @@  version.m4: FORCE
 
 FORCE:
 
+EXTRA_DIST += ndctl.spec.in \
+		sles/header \
+		contrib/nvdimm-security.conf
+
 noinst_SCRIPTS = rhel/ndctl.spec sles/ndctl.spec
 CLEANFILES += $(noinst_SCRIPTS)
 
@@ -75,6 +79,12 @@  libutil_a_SOURCES = \
 	util/filter.c \
 	util/bitmap.c \
 	util/abspath.c \
-	util/iomem.c
+	util/iomem.c \
+	util/util.h \
+	util/strbuf.h \
+	util/size.h \
+	util/main.h \
+	util/filter.h \
+	util/bitmap.h
 
 nobase_include_HEADERS = daxctl/libdaxctl.h
diff --git a/daxctl/Makefile.am b/daxctl/Makefile.am
index 66dcc7fc3438..ca1b86748bfb 100644
--- a/daxctl/Makefile.am
+++ b/daxctl/Makefile.am
@@ -16,7 +16,8 @@  daxctl_SOURCES =\
 		list.c \
 		migrate.c \
 		device.c \
-		../util/json.c
+		../util/json.c \
+		builtin.h
 
 daxctl_LDADD =\
 	lib/libdaxctl.la \
diff --git a/daxctl/lib/Makefile.am b/daxctl/lib/Makefile.am
index 7704b1be76f0..25efd8333572 100644
--- a/daxctl/lib/Makefile.am
+++ b/daxctl/lib/Makefile.am
@@ -23,7 +23,7 @@  libdaxctl_la_LIBADD =\
 
 daxctl_modprobe_data_DATA = daxctl.conf
 
-EXTRA_DIST += libdaxctl.sym
+EXTRA_DIST += libdaxctl.sym daxctl.conf
 
 libdaxctl_la_LDFLAGS = $(AM_LDFLAGS) \
 	-version-info $(LIBDAXCTL_CURRENT):$(LIBDAXCTL_REVISION):$(LIBDAXCTL_AGE) \
diff --git a/ndctl/Makefile.am b/ndctl/Makefile.am
index 502271ebb65e..264c4ed2d9e8 100644
--- a/ndctl/Makefile.am
+++ b/ndctl/Makefile.am
@@ -11,6 +11,7 @@  config.h: $(srcdir)/Makefile.am
 	$(AM_V_GEN) echo '#define NDCTL_KEYS_DIR  "$(ndctl_keysdir)"' >>$@
 
 ndctl_SOURCES = ndctl.c \
+		builtin.h \
 		bus.c \
 		create-nfit.c \
 		namespace.c \
@@ -20,11 +21,18 @@  ndctl_SOURCES = ndctl.c \
 		 ../util/log.c \
 		list.c \
 		../util/json.c \
+		../util/json.h \
 		util/json-smart.c \
 		util/json-firmware.c \
+		util/keys.h \
 		inject-error.c \
 		inject-smart.c \
-		monitor.c
+		monitor.c \
+		namespace.h \
+		action.h \
+		../nfit.h \
+		../test.h \
+		firmware-update.h
 
 if ENABLE_KEYUTILS
 ndctl_SOURCES += util/keys.c \
@@ -33,6 +41,8 @@  keys_configdir = $(ndctl_keysdir)
 keys_config_DATA = $(ndctl_keysreadme)
 endif
 
+EXTRA_DIST += keys.readme monitor.conf ndctl-monitor.service
+
 if ENABLE_DESTRUCTIVE
 ndctl_SOURCES += ../test/blk_namespaces.c \
 		 ../test/pmem_namespaces.c
diff --git a/ndctl/lib/Makefile.am b/ndctl/lib/Makefile.am
index e4eb0060bca4..d6be5c3acd26 100644
--- a/ndctl/lib/Makefile.am
+++ b/ndctl/lib/Makefile.am
@@ -9,10 +9,12 @@  lib_LTLIBRARIES = libndctl.la
 libndctl_la_SOURCES =\
 	../libndctl.h \
 	private.h \
+	../../util/list.h \
 	../../util/log.c \
 	../../util/log.h \
 	../../util/sysfs.c \
 	../../util/sysfs.h \
+	../../util/fletcher.h \
 	dimm.c \
 	inject.c \
 	nfit.c \
@@ -23,7 +25,12 @@  libndctl_la_SOURCES =\
 	hyperv.c \
 	ars.c \
 	firmware.c \
-	libndctl.c
+	libndctl.c \
+	intel.h \
+	hpe1.h \
+	msft.h \
+	hyperv.h \
+	../../ndctl/libndctl-nfit.h
 
 libndctl_la_LIBADD =\
 	../../daxctl/lib/libdaxctl.la \
diff --git a/test/Makefile.am b/test/Makefile.am
index 829146d5da74..c2c1158dc8ba 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -27,6 +27,8 @@  TESTS =\
 	max_available_extent_ns.sh \
 	pfn-meta-errors.sh
 
+EXTRA_DIST = $(TESTS)
+
 check_PROGRAMS =\
 	libndctl \
 	dsm-fail \