]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Makefile: add mkdirs for all */test/list.h targets (#1923)
authorMichał Górny <mgorny@gentoo.org>
Wed, 19 Jul 2023 08:22:25 +0000 (10:22 +0200)
committerGitHub <noreply@github.com>
Wed, 19 Jul 2023 08:22:25 +0000 (10:22 +0200)
Add missing mkdir calls to `cat/test/list.h` and `unzip/test/list.h`
invocations, making them consistent with the other rules. Otherwise,
the build fails when configured with `--disable-dependency-tracking`,
as configure does not create the directories automatically then.

Makefile.am

index 7f0198a40c46d06451a5d11209f22f7e7c7c7b09..b93f1232003d1d96a6507ddfd44c484eb0b75f8a 100644 (file)
@@ -1417,6 +1417,7 @@ bsdcat_test_CPPFLAGS= \
 bsdcat_test_LDADD=libarchive_fe.la
 
 cat/test/list.h: Makefile
+       $(MKDIR_P) cat/test
        cat $(top_srcdir)/cat/test/test_*.c | grep '^DEFINE_TEST' > cat/test/list.h
 
 if BUILD_BSDCAT
@@ -1520,6 +1521,7 @@ bsdunzip_test_CPPFLAGS= \
 bsdunzip_test_LDADD=libarchive_fe.la
 
 unzip/test/list.h: Makefile
+       $(MKDIR_P) unzip/test
        cat $(top_srcdir)/unzip/test/test_*.c | grep '^DEFINE_TEST' > unzip/test/list.h
 
 if BUILD_BSDUNZIP