build: fix packaging problems and make distcheck happy

The 'distcheck' rule performs all of the operations associated with
packaging a distribution and verifying that the distribution works.

There were several problems:

  - libgsmhr/Makefile.am: 'patches' dir was not listed in EXTRA_DIST
  - libgsmhr/Makefile.am: (dist)clean targets wan't defined properly
  - tests/Makefile.am: 'ref-files' dir was not listed in EXTRA_DIST
  - tests/testsuite.at: wrong path was used for io_sample.txt

Change-Id: Ieb8f6a2a81f9b75c8c6c5db443b0e7be02bc4153
This commit is contained in:
Vadim Yanitskiy 2018-07-09 22:01:39 +07:00
parent 27bc25cd9f
commit 62717b6375
3 changed files with 10 additions and 4 deletions

View File

@ -1,7 +1,10 @@
AM_CPPFLAGS = $(all_includes) -I$(top_srcdir)/include -I$(top_builddir)
AM_CFLAGS = -fPIC -Wall ${SYMBOL_VISIBILITY}
EXTRA_DIST=fetch_sources.py
EXTRA_DIST = \
fetch_sources.py \
patches \
$(NULL)
LIBVERSION=0:0:0
@ -22,4 +25,7 @@ libgsmhr_la_SOURCES = $(REFSRC_SRC) libgsmhr.c
libgsmhr_la_LIBADD = -ldl
clean-local:
-rm -rf ${REFSRC_PATH}/*.{c,h} ${REFSRC_PATH}/.downloaded
-rm -rf ${REFSRC_PATH}/*.lo
distclean-local:
-rm -rf ${REFSRC_PATH}/

View File

@ -79,7 +79,7 @@ EXTRA_DIST += \
io/pq_file_test.ok \
io/pq_rtp_test.ok \
io/io_sample.txt \
ref-files/* \
ref-files \
$(NULL)
DISTCLEANFILES = atconfig atlocal

View File

@ -12,7 +12,7 @@ AT_KEYWORDS([pq_file])
cat $abs_srcdir/io/pq_file_test.ok > expout
AT_CHECK([
$abs_top_builddir/tests/io/pq_file_test \
$abs_top_builddir/tests/io/io_sample.txt],
$abs_srcdir/io/io_sample.txt],
[0], [expout])
AT_CLEANUP