1
0
mirror of https://github.com/TREX-CoE/trexio.git synced 2024-07-22 10:47:43 +02:00

Add debuild_from_dist rule

This can produce debian packages when executed within the source code distribution, namely within the directory extracted from the `make dist`-produced tarball
This commit is contained in:
q-posev 2022-02-16 18:02:45 +01:00
parent bc5abdf16f
commit f5b2e98018

View File

@ -83,6 +83,27 @@ EXTRA_DIST += CMakeLists.txt \
cmake/cmake_uninstall.cmake.in \
cmake/FindTREXIO.cmake
# Include files needed to produce the debian package.
DEB_FILES = \
debian/changelog \
debian/compat \
debian/control \
debian/copyright \
debian/patches \
debian/README.Debian \
debian/README.md \
debian/rules \
debian/source \
debian/watch
EXTRA_DIST += $(DEB_FILES)
debian_from_dist: $(DEB_FILES) $(SOURCES) $(trexio_h)
VERSION=`echo ../trexio-*.tar.gz | grep -Eo '[[:digit:]].[[:digit:]].[[:digit:]]'` && \
cp ../trexio-${VERSION}.tar.gz ../libtrexio_${VERSION}.orig.tar.gz
debuild
# =============== TESTS =============== #
TESTS_C = \