diff mbox series

[libgpiod,08/11] bindings: rust: include rust sources in the release tarballs

Message ID 20221130124231.1054001-9-brgl@bgdev.pl
State New
Headers show
Series [libgpiod,01/11] treewide: use C enum types explicitly | expand

Commit Message

Bartosz Golaszewski Nov. 30, 2022, 12:42 p.m. UTC
From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>

Rust sources and Cargo files are not added to EXTRA_DIST. Add them so that
they end up in the release tarballs generated by autotools.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
---
 bindings/rust/Makefile.am                       |  4 ++++
 bindings/rust/gpiosim-sys/Makefile.am           |  6 ++++++
 bindings/rust/gpiosim-sys/src/Makefile.am       |  5 +++++
 bindings/rust/libgpiod-sys/Makefile.am          |  6 ++++++
 bindings/rust/libgpiod-sys/src/Makefile.am      |  5 +++++
 bindings/rust/libgpiod/Makefile.am              |  6 ++++++
 bindings/rust/libgpiod/examples/Makefile.am     | 14 ++++++++++++++
 bindings/rust/libgpiod/src/Makefile.am          | 15 +++++++++++++++
 bindings/rust/libgpiod/tests/Makefile.am        | 15 +++++++++++++++
 bindings/rust/libgpiod/tests/common/Makefile.am |  5 +++++
 configure.ac                                    |  9 +++++++++
 11 files changed, 90 insertions(+)
 create mode 100644 bindings/rust/gpiosim-sys/Makefile.am
 create mode 100644 bindings/rust/gpiosim-sys/src/Makefile.am
 create mode 100644 bindings/rust/libgpiod-sys/Makefile.am
 create mode 100644 bindings/rust/libgpiod-sys/src/Makefile.am
 create mode 100644 bindings/rust/libgpiod/Makefile.am
 create mode 100644 bindings/rust/libgpiod/examples/Makefile.am
 create mode 100644 bindings/rust/libgpiod/src/Makefile.am
 create mode 100644 bindings/rust/libgpiod/tests/Makefile.am
 create mode 100644 bindings/rust/libgpiod/tests/common/Makefile.am
diff mbox series

Patch

diff --git a/bindings/rust/Makefile.am b/bindings/rust/Makefile.am
index a0d0772..1e01024 100644
--- a/bindings/rust/Makefile.am
+++ b/bindings/rust/Makefile.am
@@ -17,3 +17,7 @@  all:
 
 clean:
 	cargo clean
+
+EXTRA_DIST = Cargo.toml
+
+SUBDIRS = gpiosim-sys libgpiod libgpiod-sys
diff --git a/bindings/rust/gpiosim-sys/Makefile.am b/bindings/rust/gpiosim-sys/Makefile.am
new file mode 100644
index 0000000..9471b0e
--- /dev/null
+++ b/bindings/rust/gpiosim-sys/Makefile.am
@@ -0,0 +1,6 @@ 
+# SPDX-License-Identifier: GPL-2.0-or-later
+# SPDX-FileCopyrightText: 2022 Linaro Ltd.
+# SPDX-FileCopyrightTest: 2022 Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
+
+EXTRA_DIST = build.rs Cargo.toml README.md
+SUBDIRS = src
diff --git a/bindings/rust/gpiosim-sys/src/Makefile.am b/bindings/rust/gpiosim-sys/src/Makefile.am
new file mode 100644
index 0000000..af104d0
--- /dev/null
+++ b/bindings/rust/gpiosim-sys/src/Makefile.am
@@ -0,0 +1,5 @@ 
+# SPDX-License-Identifier: GPL-2.0-or-later
+# SPDX-FileCopyrightText: 2022 Linaro Ltd.
+# SPDX-FileCopyrightTest: 2022 Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
+
+EXTRA_DIST = lib.rs sim.rs
diff --git a/bindings/rust/libgpiod-sys/Makefile.am b/bindings/rust/libgpiod-sys/Makefile.am
new file mode 100644
index 0000000..9471b0e
--- /dev/null
+++ b/bindings/rust/libgpiod-sys/Makefile.am
@@ -0,0 +1,6 @@ 
+# SPDX-License-Identifier: GPL-2.0-or-later
+# SPDX-FileCopyrightText: 2022 Linaro Ltd.
+# SPDX-FileCopyrightTest: 2022 Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
+
+EXTRA_DIST = build.rs Cargo.toml README.md
+SUBDIRS = src
diff --git a/bindings/rust/libgpiod-sys/src/Makefile.am b/bindings/rust/libgpiod-sys/src/Makefile.am
new file mode 100644
index 0000000..36361e7
--- /dev/null
+++ b/bindings/rust/libgpiod-sys/src/Makefile.am
@@ -0,0 +1,5 @@ 
+# SPDX-License-Identifier: GPL-2.0-or-later
+# SPDX-FileCopyrightText: 2022 Linaro Ltd.
+# SPDX-FileCopyrightTest: 2022 Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
+
+EXTRA_DIST = lib.rs
diff --git a/bindings/rust/libgpiod/Makefile.am b/bindings/rust/libgpiod/Makefile.am
new file mode 100644
index 0000000..6b55d0d
--- /dev/null
+++ b/bindings/rust/libgpiod/Makefile.am
@@ -0,0 +1,6 @@ 
+# SPDX-License-Identifier: GPL-2.0-or-later
+# SPDX-FileCopyrightText: 2022 Linaro Ltd.
+# SPDX-FileCopyrightTest: 2022 Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
+
+EXTRA_DIST = Cargo.toml
+SUBDIRS = examples src tests
diff --git a/bindings/rust/libgpiod/examples/Makefile.am b/bindings/rust/libgpiod/examples/Makefile.am
new file mode 100644
index 0000000..6028fff
--- /dev/null
+++ b/bindings/rust/libgpiod/examples/Makefile.am
@@ -0,0 +1,14 @@ 
+# SPDX-License-Identifier: GPL-2.0-or-later
+# SPDX-FileCopyrightText: 2022 Linaro Ltd.
+# SPDX-FileCopyrightTest: 2022 Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
+
+EXTRA_DIST = \
+	gpiodetect.rs \
+	gpio_events.rs \
+	gpiofind.rs \
+	gpioget.rs \
+	gpioinfo.rs \
+	gpiomon.rs \
+	gpioset.rs \
+	gpio_threaded_info_events.rs \
+	gpiowatch.rs
diff --git a/bindings/rust/libgpiod/src/Makefile.am b/bindings/rust/libgpiod/src/Makefile.am
new file mode 100644
index 0000000..df63c72
--- /dev/null
+++ b/bindings/rust/libgpiod/src/Makefile.am
@@ -0,0 +1,15 @@ 
+# SPDX-License-Identifier: GPL-2.0-or-later
+# SPDX-FileCopyrightText: 2022 Linaro Ltd.
+# SPDX-FileCopyrightTest: 2022 Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
+
+EXTRA_DIST = \
+	chip.rs \
+	edge_event.rs \
+	event_buffer.rs \
+	info_event.rs \
+	lib.rs \
+	line_config.rs \
+	line_info.rs \
+	line_request.rs \
+	line_settings.rs \
+	request_config.rs
diff --git a/bindings/rust/libgpiod/tests/Makefile.am b/bindings/rust/libgpiod/tests/Makefile.am
new file mode 100644
index 0000000..198f4e4
--- /dev/null
+++ b/bindings/rust/libgpiod/tests/Makefile.am
@@ -0,0 +1,15 @@ 
+# SPDX-License-Identifier: GPL-2.0-or-later
+# SPDX-FileCopyrightText: 2022 Linaro Ltd.
+# SPDX-FileCopyrightTest: 2022 Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
+
+EXTRA_DIST = \
+	chip.rs \
+	edge_event.rs \
+	info_event.rs \
+	line_config.rs \
+	line_info.rs \
+	line_request.rs \
+	line_settings.rs \
+	request_config.rs
+
+SUBDIRS = common
diff --git a/bindings/rust/libgpiod/tests/common/Makefile.am b/bindings/rust/libgpiod/tests/common/Makefile.am
new file mode 100644
index 0000000..4cfc355
--- /dev/null
+++ b/bindings/rust/libgpiod/tests/common/Makefile.am
@@ -0,0 +1,5 @@ 
+# SPDX-License-Identifier: GPL-2.0-or-later
+# SPDX-FileCopyrightText: 2022 Linaro Ltd.
+# SPDX-FileCopyrightTest: 2022 Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
+
+EXTRA_DIST = config.rs mod.rs
diff --git a/configure.ac b/configure.ac
index ccbb88a..dc945ef 100644
--- a/configure.ac
+++ b/configure.ac
@@ -266,7 +266,16 @@  AC_CONFIG_FILES([Makefile
 		 bindings/python/examples/Makefile
 		 bindings/python/tests/Makefile
 		 bindings/python/tests/gpiosim/Makefile
+		 bindings/rust/libgpiod-sys/src/Makefile
+		 bindings/rust/libgpiod-sys/Makefile
+		 bindings/rust/libgpiod/src/Makefile
+		 bindings/rust/libgpiod/tests/common/Makefile
+		 bindings/rust/libgpiod/tests/Makefile
+		 bindings/rust/libgpiod/Makefile
+		 bindings/rust/libgpiod/examples/Makefile
 		 bindings/rust/Makefile
+		 bindings/rust/gpiosim-sys/src/Makefile
+		 bindings/rust/gpiosim-sys/Makefile
 		 man/Makefile])
 
 AC_OUTPUT