mirror of
https://github.com/TREX-CoE/trexio.git
synced 2024-12-22 20:35:44 +01: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:
parent
bc5abdf16f
commit
f5b2e98018
21
Makefile.am
21
Makefile.am
@ -83,6 +83,27 @@ EXTRA_DIST += CMakeLists.txt \
|
|||||||
cmake/cmake_uninstall.cmake.in \
|
cmake/cmake_uninstall.cmake.in \
|
||||||
cmake/FindTREXIO.cmake
|
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 =============== #
|
||||||
|
|
||||||
TESTS_C = \
|
TESTS_C = \
|
||||||
|
Loading…
Reference in New Issue
Block a user