Skip to content

Commit

Permalink
Changes for deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
joachimmetz committed Apr 13, 2024
1 parent f24571d commit 0599357
Show file tree
Hide file tree
Showing 11 changed files with 44 additions and 72 deletions.
23 changes: 9 additions & 14 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,15 @@ EXTRA_DIST = \
$(PKGCONFIG_FILES) \
$(SPEC_FILES)

MAINTAINERCLEANFILES = \
Makefile.in
DISTCLEANFILES = \
config.status \
config.cache \
config.log \
libcerror.pc \
libcerror.spec \
Makefile \
Makefile.in \
po/Makevars

pkgconfigdir = $(libdir)/pkgconfig

Expand All @@ -55,15 +62,3 @@ library:
cd $(srcdir)/libcerror && $(MAKE) $(AM_MAKEFLAGS)
cd $(srcdir)/po && $(MAKE) $(AM_MAKEFLAGS)

distclean: clean
-rm -f Makefile
-rm -f config.status
-rm -f config.cache
-rm -f config.log
-rm -f libcerror.pc
-rm -f libcerror.spec
@for dir in ${subdirs}; do \
(cd $$dir && $(MAKE) distclean) \
|| case "$(MFLAGS)" in *k*) fail=yes;; *) exit 1;; esac; \
done && test -z "$$fail"

13 changes: 6 additions & 7 deletions common/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
AM_CPPFLAGS = -I$(top_srcdir)/include
AM_CPPFLAGS = \
-I$(top_builddir)/include -I$(top_srcdir)/include

EXTRA_DIST = \
byte_stream.h \
Expand All @@ -15,11 +16,9 @@ EXTRA_DIST = \
types.h.in \
wide_string.h

MAINTAINERCLEANFILES = \
DISTCLEANFILES = \
config.h \
types.h \
Makefile \
Makefile.in

distclean: clean
-rm -f config.h
-rm -f types.h
-rm -f Makefile

2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ AC_PREREQ([2.71])

AC_INIT(
[libcerror],
[20240318],
[20240413],
[[email protected]])

AC_CONFIG_SRCDIR(
Expand Down
14 changes: 6 additions & 8 deletions include/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,11 @@ EXTRA_DIST = \
libcerror/features.h.in \
libcerror/types.h.in

MAINTAINERCLEANFILES = \
DISTCLEANFILES = \
libcerror.h \
libcerror/definitions.h \
libcerror/features.h \
libcerror/types.h \
Makefile \
Makefile.in

distclean: clean
-rm -f libcerror.h
-rm -f libcerror/definitions.h
-rm -f libcerror/features.h
-rm -f libcerror/types.h
-rm -f Makefile

14 changes: 6 additions & 8 deletions libcerror/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
AM_CPPFLAGS = \
-I$(top_srcdir)/include \
-I$(top_srcdir)/common \
-I$(top_builddir)/include -I$(top_srcdir)/include \
-I$(top_builddir)/common -I$(top_srcdir)/common \
@LIBCERROR_DLL_EXPORT@

lib_LTLIBRARIES = libcerror.la
Expand All @@ -22,14 +22,12 @@ EXTRA_DIST = \
libcerror.rc \
libcerror.rc.in

MAINTAINERCLEANFILES = \
DISTCLEANFILES = \
libcerror_definitions.h \
libcerror.rc \
Makefile \
Makefile.in

distclean: clean
-rm -f libcerror_definitions.h
-rm -f libcerror.rc
-rm -f Makefile

sources-local: $(BUILT_SOURCES)

splint-local:
Expand Down
6 changes: 2 additions & 4 deletions manuals/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ man_MANS = \
EXTRA_DIST = \
libcerror.3

MAINTAINERCLEANFILES = \
DISTCLEANFILES = \
Makefile \
Makefile.in

distclean: clean
-rm -f Makefile

6 changes: 2 additions & 4 deletions msvscpp/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ MSVSCPP_FILES = \
EXTRA_DIST = \
$(MSVSCPP_FILES)

MAINTAINERCLEANFILES = \
DISTCLEANFILES = \
Makefile \
Makefile.in

distclean: clean
-rm -f Makefile

10 changes: 2 additions & 8 deletions synclibs.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh
# Script that synchronizes the local library dependencies
#
# Version: 20231023
# Version: 20240413

EXIT_SUCCESS=0;
EXIT_FAILURE=1;
Expand Down Expand Up @@ -93,12 +93,6 @@ endif
i\\
endif
d
}
/distclean: clean/ {
n
N
d
}";
echo "${SED_SCRIPT}" >> ${LOCAL_LIB}-$$.sed;
sed -i'~' -f ${LOCAL_LIB}-$$.sed ${LOCAL_LIB_MAKEFILE_AM};
Expand Down Expand Up @@ -140,7 +134,7 @@ SED_SCRIPT="/^$/ {
then
if ! test -f "m4/libuna.m4";
then
sed -i'~' 's?@LIBUNA_CPPFLAGS@?-I$(top_srcdir)/libuna?' ${LOCAL_LIB_MAKEFILE_AM};
sed -i'~' 's?@LIBUNA_CPPFLAGS@?-I$(top_builddir)/libuna -I$(top_srcdir)/libuna?' ${LOCAL_LIB_MAKEFILE_AM};
fi
fi

Expand Down
10 changes: 4 additions & 6 deletions tests/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
AM_CPPFLAGS = \
-I$(top_srcdir)/include \
-I$(top_srcdir)/common \
-I$(top_builddir)/include -I$(top_srcdir)/include \
-I$(top_builddir)/common -I$(top_srcdir)/common \
@LIBCERROR_DLL_IMPORT@

TESTS = \
Expand Down Expand Up @@ -48,9 +48,7 @@ cerror_test_system_SOURCES = \
cerror_test_system_LDADD = \
../libcerror/libcerror.la

MAINTAINERCLEANFILES = \
DISTCLEANFILES = \
Makefile \
Makefile.in

distclean: clean
-rm -f Makefile

9 changes: 3 additions & 6 deletions tests/test_library.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
# Tests library functions and types.
#
# Version: 20231007
# Version: 20240413

EXIT_SUCCESS=0;
EXIT_FAILURE=1;
Expand Down Expand Up @@ -141,12 +141,9 @@ then
exit ${EXIT_IGNORE};
fi

TEST_RUNNER="tests/test_runner.sh";
TEST_DIRECTORY=`dirname $0`;

if ! test -f "${TEST_RUNNER}";
then
TEST_RUNNER="./test_runner.sh";
fi
TEST_RUNNER="${TEST_DIRECTORY}/test_runner.sh";

if ! test -f "${TEST_RUNNER}";
then
Expand Down
9 changes: 3 additions & 6 deletions tests/test_manpage.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
# Tests man pages.
#
# Version: 20230410
# Version: 20240413

EXIT_SUCCESS=0;
EXIT_FAILURE=1;
Expand Down Expand Up @@ -45,12 +45,9 @@ then
exit ${EXIT_IGNORE};
fi

TEST_RUNNER="tests/test_runner.sh";
TEST_DIRECTORY=`dirname $0`;

if ! test -f "${TEST_RUNNER}";
then
TEST_RUNNER="./test_runner.sh";
fi
TEST_RUNNER="${TEST_DIRECTORY}/test_runner.sh";

if ! test -f "${TEST_RUNNER}";
then
Expand Down

0 comments on commit 0599357

Please sign in to comment.