2012-06-26 11:31:53 -05:00
|
|
|
AM_CPPFLAGS = \
|
|
|
|
-include config.h \
|
|
|
|
-I$(top_srcdir)/include \
|
2012-06-23 00:05:14 -05:00
|
|
|
-DLOCALEDIR=\"$(localedir)\" \
|
2019-11-11 06:08:04 -06:00
|
|
|
-D_PATH_RUNSTATEDIR=\"${runstatedir}\" \
|
|
|
|
-D_PATH_SYSCONFSTATICDIR=\"${sysconfstaticdir}\"
|
|
|
|
|
2020-05-25 06:44:22 -05:00
|
|
|
if USE_VENDORDIR
|
|
|
|
AM_CPPFLAGS += \
|
|
|
|
-D_PATH_VENDORDIR=\"${vendordir}\"
|
|
|
|
endif
|
|
|
|
|
2020-07-27 23:17:40 -05:00
|
|
|
if FUZZING_ENGINE
|
|
|
|
if !OSS_FUZZ
|
|
|
|
AM_CPPFLAGS += \
|
|
|
|
-DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2012-06-26 11:31:53 -05:00
|
|
|
AM_CFLAGS = -fsigned-char $(WARN_CFLAGS)
|
2020-07-27 23:17:40 -05:00
|
|
|
AM_CXXFLAGS = $(AM_CFLAGS)
|
|
|
|
AM_LDFLAGS = $(ASAN_LDFLAGS) $(UBSAN_LDFLAGS) $(FUZZING_ENGINE_LDFLAGS)
|
2012-06-26 11:31:53 -05:00
|
|
|
|
2012-07-09 09:44:25 -05:00
|
|
|
# Add gettext stuff to the global LDADD for systems with separate libintl
|
|
|
|
# library. The LTLIBINTL is generated by AM_GNU_GETTEXT macro.
|
|
|
|
#
|
|
|
|
LDADD = $(LTLIBINTL)
|
|
|
|
|
2020-07-27 23:17:40 -05:00
|
|
|
LIB_FUZZING_ENGINE ?= -fsanitize=fuzzer
|
|
|
|
|
2012-06-26 11:31:53 -05:00
|
|
|
# Automake (at least up to 1.10) mishandles dist_man_MANS inside conditionals.
|
|
|
|
# Unlike with other dist primaries, the files are not distributed if the
|
|
|
|
# conditional is false.
|
|
|
|
# Work the bug around until it is fixed:
|
|
|
|
dist_noinst_DATA = $(dist_man_MANS)
|
|
|
|
|
2014-03-17 04:51:56 -05:00
|
|
|
# Paths to in-tree libraries (use ul_ prefix to avoid possible collisions) Note
|
2014-11-26 05:45:24 -06:00
|
|
|
# that blkid.h, libmount.h, libfdisk.h and libsmartcols.h are generated and
|
|
|
|
# stored in build dirs.
|
2012-06-26 11:31:53 -05:00
|
|
|
#
|
|
|
|
ul_libblkid_incdir = $(top_builddir)/libblkid/src
|
|
|
|
ul_libmount_incdir = $(top_builddir)/libmount/src
|
2014-03-17 04:51:56 -05:00
|
|
|
ul_libsmartcols_incdir = $(top_builddir)/libsmartcols/src
|
2014-11-26 05:45:24 -06:00
|
|
|
ul_libfdisk_incdir = $(top_builddir)/libfdisk/src
|
|
|
|
|
2012-06-26 11:31:53 -05:00
|
|
|
ul_libuuid_incdir = $(top_srcdir)/libuuid/src
|
2006-12-06 17:26:54 -06:00
|
|
|
|
2013-03-19 17:24:41 -05:00
|
|
|
bashcompletiondir = @bashcompletiondir@
|
|
|
|
|
2012-05-16 08:05:11 -05:00
|
|
|
dist_noinst_HEADERS =
|
2012-05-16 17:54:26 -05:00
|
|
|
noinst_PROGRAMS =
|
2021-03-15 07:16:08 -05:00
|
|
|
EXTRA_LTLIBRARIES =
|
2012-05-22 08:57:23 -05:00
|
|
|
usrbin_exec_PROGRAMS =
|
2012-05-30 09:10:11 -05:00
|
|
|
usrsbin_exec_PROGRAMS =
|
2012-05-22 08:57:23 -05:00
|
|
|
dist_man_MANS =
|
2012-05-23 02:37:38 -05:00
|
|
|
man_MANS =
|
|
|
|
pkgconfig_DATA =
|
|
|
|
usrlib_exec_LTLIBRARIES =
|
2012-06-26 10:53:09 -05:00
|
|
|
bin_PROGRAMS =
|
|
|
|
sbin_PROGRAMS =
|
|
|
|
dist_usrbin_exec_SCRIPTS =
|
2012-06-26 11:14:36 -05:00
|
|
|
systemdsystemunit_DATA =
|
2014-05-21 07:29:42 -05:00
|
|
|
dist_bashcompletion_DATA =
|
2012-07-30 10:59:16 -05:00
|
|
|
check_PROGRAMS =
|
2014-06-03 17:17:58 -05:00
|
|
|
dist_check_SCRIPTS =
|
2012-05-16 08:05:11 -05:00
|
|
|
|
2012-08-14 18:53:40 -05:00
|
|
|
PATHFILES =
|
|
|
|
|
2012-06-26 10:44:15 -05:00
|
|
|
INSTALL_EXEC_HOOKS =
|
|
|
|
UNINSTALL_HOOKS =
|
|
|
|
INSTALL_DATA_HOOKS =
|
2012-06-01 08:30:56 -05:00
|
|
|
CLEAN_LOCALS =
|
2012-08-03 14:24:51 -05:00
|
|
|
CHECK_LOCALS =
|
2012-06-26 10:44:15 -05:00
|
|
|
|
2012-10-08 02:08:07 -05:00
|
|
|
EXTRA_DIST =
|
2012-05-23 02:37:38 -05:00
|
|
|
CLEANFILES =
|
|
|
|
|
2012-06-26 11:31:53 -05:00
|
|
|
SUBDIRS = po
|
2008-11-26 05:42:35 -06:00
|
|
|
|
2011-02-26 08:37:20 -06:00
|
|
|
RCS_FIND_IGNORE = \( -name SCCS -o -name BitKeeper -o -name .svn -o \
|
2008-11-26 05:42:35 -06:00
|
|
|
-name CVS -o -name .pc -o -name .hg -o -name .git \) -prune -o
|
|
|
|
|
2006-12-06 17:26:54 -06:00
|
|
|
ACLOCAL_AMFLAGS = -I m4
|
|
|
|
|
2012-05-23 02:37:38 -05:00
|
|
|
EXTRA_DIST += \
|
2012-02-08 02:51:34 -06:00
|
|
|
.version \
|
|
|
|
autogen.sh \
|
|
|
|
Documentation \
|
|
|
|
po/update-potfiles \
|
2016-05-25 08:59:15 -05:00
|
|
|
README.licensing
|
2012-05-16 08:05:11 -05:00
|
|
|
|
2016-05-25 08:59:15 -05:00
|
|
|
include tools/Makemodule.am
|
2012-05-16 08:05:11 -05:00
|
|
|
include include/Makemodule.am
|
2012-05-16 17:54:26 -05:00
|
|
|
include lib/Makemodule.am
|
2012-05-23 02:37:38 -05:00
|
|
|
include libuuid/Makemodule.am
|
2012-06-26 10:44:15 -05:00
|
|
|
include libblkid/Makemodule.am
|
2012-06-26 10:49:37 -05:00
|
|
|
include libmount/Makemodule.am
|
2014-03-17 04:51:56 -05:00
|
|
|
include libsmartcols/Makemodule.am
|
2014-03-27 08:58:51 -05:00
|
|
|
include libfdisk/Makemodule.am
|
2012-06-26 10:49:37 -05:00
|
|
|
|
|
|
|
include schedutils/Makemodule.am
|
2012-06-26 10:53:09 -05:00
|
|
|
include text-utils/Makemodule.am
|
|
|
|
include term-utils/Makemodule.am
|
2012-05-30 09:10:11 -05:00
|
|
|
include login-utils/Makemodule.am
|
2012-06-26 11:06:21 -05:00
|
|
|
include sys-utils/Makemodule.am
|
2012-06-26 11:14:36 -05:00
|
|
|
include misc-utils/Makemodule.am
|
2012-06-26 11:20:00 -05:00
|
|
|
include disk-utils/Makemodule.am
|
2012-05-16 08:05:11 -05:00
|
|
|
|
2013-04-05 07:58:07 -05:00
|
|
|
include bash-completion/Makemodule.am
|
2013-03-19 17:24:41 -05:00
|
|
|
|
2012-06-01 08:30:56 -05:00
|
|
|
include tests/Makemodule.am
|
|
|
|
|
2021-03-16 06:32:21 -05:00
|
|
|
|
build-sys: Properly order install dependencies of pylibmount
Introduce a dependency so that libmount.so is installed before
pylibmount.so, so that when libtool tries to relink it, it can find
libmount.so in the destdir.
We introduce this additional make rule through an AC_SUBST variable, to
prevent automake from trying to interpret that. This trick has been
suggested in http://stackoverflow.com/a/8643550.
This fixes a failure of `make install DESTDIR=...` when trying to relink
pylibmount against libmount.la. libtool will look for libmount.so under
${DESTDIR}/${libdir} in that case, but if it is not yet present there,
libtool assumes it is a system installed library and use -lmount
instead, which causes the following failure if libmount is not installed
on the base system yet:
libtool: install: warning: relinking `pylibmount.la'
libtool: install: (... libtool --mode=relink gcc -o pylibmount.la \
-rpath /usr/lib/python2.7/dist-packages/libmount \
libmount/python/*.lo libmount.la ... -lpython2.7 \
-inst-prefix-dir /path/to/destdir)
/usr/bin/ld: cannot find -lmount
collect2: error: ld returned 1 exit status
libtool: install: error: relink `pylibmount.la' ...
make[3]: *** [install-pylibmountexecLTLIBRARIES] Error 1
This seems to be a previously encountered issue, since automake includes
a hack to insert such a dependency rule to install all libLTLIBRARIES
before attempting to install binPROGRAMS, initially introduced in the
commit below:
http://git.savannah.gnu.org/cgit/automake.git/commit/?id=bd4a1d5ad1a72fa780a8b7fd6c365a5dad2e6220
Also related bug from Ubuntu tracker:
https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/1442076
Tested that `make install` starts working again after this commit, even
when libmount-dev is not installed on the system. Also confirmed that
`make distcheck` is now functional.
Confirmed that the all the files expected in the Python directory (both
__init__.py and pylibmount.so) are present after an install.
Tested that parallel install works, the dependency is always respected
since it's explicit.
Inspected the generated Makefile and confirmed that the definition of
install-pylibmountexecLTLIBRARIES (generated by automake) and the
explicit dependency we introduced are both present.
Signed-off-by: Filipe Brandenburger <filbranden@google.com>
2016-02-05 12:13:40 -06:00
|
|
|
# pylibmountexec module must be installed after usrlib_exec libraries,
|
|
|
|
# otherwise the libtool relink step will fail to find libmount.la and
|
|
|
|
# will try -lmount which is possibly not available.
|
|
|
|
#
|
|
|
|
# So introduce this dependency rule:
|
|
|
|
# install-pylibmountexecLTLIBRARIES: install-usrlib_execLTLIBRARIES
|
|
|
|
@verbatim_pylibmount_dependency@
|
|
|
|
|
2012-08-14 18:53:40 -05:00
|
|
|
#
|
|
|
|
# Don't rely on configure.ac AC_CONFIG_FILES for install paths.
|
|
|
|
#
|
|
|
|
# The paths should be expanded at make time rather than configure:
|
|
|
|
# - to support 'make install prefix=/foo DESTDIR=/foo'
|
|
|
|
# - to recursively expands the paths (e.g. AC_CONFIG_FILES expands
|
|
|
|
# '@usrsbin_execdir@' to ${exec_prefix}/sbin')
|
|
|
|
#
|
|
|
|
edit_cmd = sed \
|
|
|
|
-e 's|@prefix[@]|$(prefix)|g' \
|
|
|
|
-e 's|@exec_prefix[@]|$(exec_prefix)|g' \
|
|
|
|
-e 's|@sysconfdir[@]|$(sysconfdir)|g' \
|
|
|
|
-e 's|@datadir[@]|$(datadir)|g' \
|
|
|
|
-e 's|@sbindir[@]|$(sbindir)|g' \
|
|
|
|
-e 's|@bindir[@]|$(bindir)|g' \
|
2020-02-12 15:05:54 -06:00
|
|
|
-e 's|@docdir[@]|$(docdir)|g' \
|
2012-08-14 18:53:40 -05:00
|
|
|
-e 's|@includedir[@]|$(includedir)|g' \
|
2017-07-27 09:00:42 -05:00
|
|
|
-e 's|@runstatedir[@]|$(runstatedir)|g' \
|
2012-08-14 18:53:40 -05:00
|
|
|
-e 's|@usrlib_execdir[@]|$(usrlib_execdir)|g' \
|
|
|
|
-e 's|@usrbin_execdir[@]|$(usrbin_execdir)|g' \
|
|
|
|
-e 's|@usrsbin_execdir[@]|$(usrsbin_execdir)|g' \
|
|
|
|
-e 's|@VERSION[@]|$(VERSION)|g' \
|
2014-06-19 03:18:46 -05:00
|
|
|
-e 's|@ADJTIME_PATH[@]|$(ADJTIME_PATH)|g' \
|
2012-08-14 18:53:40 -05:00
|
|
|
-e 's|@LIBUUID_VERSION[@]|$(LIBUUID_VERSION)|g' \
|
|
|
|
-e 's|@LIBMOUNT_VERSION[@]|$(LIBMOUNT_VERSION)|g' \
|
2014-10-01 09:14:02 -05:00
|
|
|
-e 's|@LIBMOUNT_MAJOR_VERSION[@]|$(LIBMOUNT_MAJOR_VERSION)|g' \
|
|
|
|
-e 's|@LIBMOUNT_MINOR_VERSION[@]|$(LIBMOUNT_MINOR_VERSION)|g' \
|
|
|
|
-e 's|@LIBMOUNT_PATCH_VERSION[@]|$(LIBMOUNT_PATCH_VERSION)|g' \
|
2014-06-16 08:18:20 -05:00
|
|
|
-e 's|@LIBSMARTCOLS_VERSION[@]|$(LIBSMARTCOLS_VERSION)|g' \
|
2014-11-26 06:20:16 -06:00
|
|
|
-e 's|@LIBFDISK_PC_REQUIRES[@]|$(LIBFDISK_PC_REQUIRES)|g' \
|
|
|
|
-e 's|@LIBFDISK_VERSION[@]|$(LIBFDISK_VERSION)|g' \
|
2015-01-13 06:46:31 -06:00
|
|
|
-e 's|@LIBFDISK_MAJOR_VERSION[@]|$(LIBFDISK_MAJOR_VERSION)|g' \
|
|
|
|
-e 's|@LIBFDISK_MINOR_VERSION[@]|$(LIBFDISK_MINOR_VERSION)|g' \
|
|
|
|
-e 's|@LIBFDISK_PATCH_VERSION[@]|$(LIBFDISK_PATCH_VERSION)|g' \
|
2012-08-14 18:53:40 -05:00
|
|
|
-e 's|@LIBBLKID_VERSION[@]|$(LIBBLKID_VERSION)|g'
|
|
|
|
|
2019-10-11 02:15:35 -05:00
|
|
|
if HAVE_SELINUX
|
|
|
|
edit_cmd += -e 's|@LIBSELINUX[@]|libselinux|g'
|
|
|
|
else
|
|
|
|
edit_cmd += -e 's|@LIBSELINUX[@]||g'
|
|
|
|
endif
|
|
|
|
|
2019-11-08 11:02:09 -06:00
|
|
|
if HAVE_CRYPTSETUP
|
cryptsetup: add option to use via dlopen in libmount
Enabling libcrypsetup in libmount had several unintended side
effects.
First of all, it increases the Debian minimal image size by
~2.5% (5.6MB worth of new libraries).
Then, due to libcryptsetup linkage to OpenSSL and libjson-c,
it causes incompatibilities with external programs linking
against both libmount and a private, static, old version of
OpenSSL, or external programs linking against libjansson or
json-glib, which have one symbol in common with libjson-c.
If ./configure is ran with --with-crypsetup=dlopen,
instead of linking to libcrypsetup, use dlopen to resolve
the symbols at runtime only when the verity feature is
used, thus avoiding clashes and keeping images size down.
Fixes #1081
Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com>
2020-06-29 15:45:26 -05:00
|
|
|
if CRYPTSETUP_VIA_DLOPEN
|
|
|
|
edit_cmd += -e 's|@LIBCRYPTSETUP[@]||g'
|
|
|
|
edit_cmd += -e 's|@LIBDL[@]|-ldl|g'
|
|
|
|
else
|
2019-11-08 11:02:09 -06:00
|
|
|
edit_cmd += -e 's|@LIBCRYPTSETUP[@]|libcryptsetup|g'
|
cryptsetup: add option to use via dlopen in libmount
Enabling libcrypsetup in libmount had several unintended side
effects.
First of all, it increases the Debian minimal image size by
~2.5% (5.6MB worth of new libraries).
Then, due to libcryptsetup linkage to OpenSSL and libjson-c,
it causes incompatibilities with external programs linking
against both libmount and a private, static, old version of
OpenSSL, or external programs linking against libjansson or
json-glib, which have one symbol in common with libjson-c.
If ./configure is ran with --with-crypsetup=dlopen,
instead of linking to libcrypsetup, use dlopen to resolve
the symbols at runtime only when the verity feature is
used, thus avoiding clashes and keeping images size down.
Fixes #1081
Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com>
2020-06-29 15:45:26 -05:00
|
|
|
edit_cmd += -e 's|@LIBDL[@]||g'
|
|
|
|
endif
|
2019-11-08 11:02:09 -06:00
|
|
|
else
|
|
|
|
edit_cmd += -e 's|@LIBCRYPTSETUP[@]||g'
|
cryptsetup: add option to use via dlopen in libmount
Enabling libcrypsetup in libmount had several unintended side
effects.
First of all, it increases the Debian minimal image size by
~2.5% (5.6MB worth of new libraries).
Then, due to libcryptsetup linkage to OpenSSL and libjson-c,
it causes incompatibilities with external programs linking
against both libmount and a private, static, old version of
OpenSSL, or external programs linking against libjansson or
json-glib, which have one symbol in common with libjson-c.
If ./configure is ran with --with-crypsetup=dlopen,
instead of linking to libcrypsetup, use dlopen to resolve
the symbols at runtime only when the verity feature is
used, thus avoiding clashes and keeping images size down.
Fixes #1081
Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com>
2020-06-29 15:45:26 -05:00
|
|
|
edit_cmd += -e 's|@LIBDL[@]||g'
|
2019-11-08 11:02:09 -06:00
|
|
|
endif
|
|
|
|
|
2020-05-25 06:44:22 -05:00
|
|
|
if USE_VENDORDIR
|
|
|
|
edit_cmd += -e 's|@vendordir[@]|$(vendordir)|g'
|
|
|
|
else
|
|
|
|
edit_cmd += -e 's|@vendordir[@]||g'
|
|
|
|
endif
|
|
|
|
|
2021-03-16 06:32:21 -05:00
|
|
|
CLEANFILES += $(PATHFILES) $(EXTRA_LTLIBRARIES)
|
2012-08-14 18:53:40 -05:00
|
|
|
EXTRA_DIST += $(PATHFILES:=.in)
|
|
|
|
|
|
|
|
$(PATHFILES): Makefile
|
|
|
|
@ rm -f $@ $@.tmp
|
2016-03-13 14:47:26 -05:00
|
|
|
$(AM_V_at) $(MKDIR_P) $$(dirname $@)
|
2012-08-14 18:53:40 -05:00
|
|
|
$(AM_V_GEN) srcdir=''; \
|
|
|
|
test -f ./$@.in || srcdir=$(srcdir)/; \
|
|
|
|
$(edit_cmd) $${srcdir}$@.in >$@.tmp
|
|
|
|
@ mv $@.tmp $@
|
|
|
|
|
2011-03-31 15:10:07 -05:00
|
|
|
# Arrange so that .tarball-version appears only in the distribution
|
|
|
|
# tarball, and never in a checked-out repository.
|
|
|
|
dist-hook:
|
|
|
|
echo $(VERSION) > $(distdir)/.tarball-version
|
2011-05-21 08:02:10 -05:00
|
|
|
# Set ChangeLog tag reference.
|
2020-05-21 10:42:30 -05:00
|
|
|
sed -i "s!log!log?h=v$(VERSION)!" $(distdir)/ChangeLog
|
2006-12-06 17:26:58 -06:00
|
|
|
|
|
|
|
distclean-local:
|
2007-05-15 13:46:30 -05:00
|
|
|
-find . -name \*~ -o -name \*.orig -o -name \*.rej | xargs rm -f
|
2006-12-06 17:26:58 -06:00
|
|
|
rm -rf autom4te.cache
|
2007-01-03 15:20:44 -06:00
|
|
|
|
2008-11-26 05:42:35 -06:00
|
|
|
|
|
|
|
checkincludes:
|
2008-11-26 06:42:16 -06:00
|
|
|
@find * $(RCS_FIND_IGNORE) \
|
2008-11-26 05:42:35 -06:00
|
|
|
-name '*.[hcS]' -type f -print | sort -u \
|
|
|
|
| xargs $(top_srcdir)/tools/checkincludes.pl
|
|
|
|
|
2008-11-26 06:42:16 -06:00
|
|
|
checkconfig:
|
|
|
|
@find * $(RCS_FIND_IGNORE) \
|
|
|
|
-name '*.[hcS]' -type f -print | sort -u \
|
|
|
|
| xargs $(top_srcdir)/tools/checkconfig.sh $(top_srcdir)
|
|
|
|
|
2012-06-02 07:36:43 -05:00
|
|
|
checkmans:
|
|
|
|
@$(top_srcdir)/tools/checkmans.sh
|
|
|
|
|
2012-01-04 07:25:21 -06:00
|
|
|
checkxalloc:
|
|
|
|
@ $(top_srcdir)/tools/checkxalloc.sh
|
2008-11-26 05:42:35 -06:00
|
|
|
|
2012-06-13 04:59:29 -05:00
|
|
|
checkdecl:
|
|
|
|
@ $(top_srcdir)/tools/checkdecl.sh
|
|
|
|
|
2016-03-17 08:05:27 -05:00
|
|
|
checkcompletion:
|
|
|
|
@ $(top_srcdir)/tools/checkcompletion.sh $(top_srcdir)
|
|
|
|
|
tools: add checkusage.sh
Just some simple generic tests for our UL commands, regarding
options --help, --version and --unknownopt.
The script looks still a bit weired but could be polished to
be used in tests/. It would be the first time testing at least
"something" for *all* built binaries (currently 109! commands).
For the record here are the current candidates with possible
problems:
$ make checkusage
agetty: --unknownopt, stderr too long: 45
blockdev: --unknownopt, stderr too long: 28
flock: --help, no stdout
flock: --help, non-empty stderr
getopt: --help, returns error
kill: --unknownopt, stderr too short: 1
lsipc: --unknownopt, stderr too long: 77
pg: --unknownopt, stderr too long: 23
renice: --unknownopt, stderr too long: 18
rtcwake: --unknownopt, non-empty stdout
rtcwake: --unknownopt, stderr too long: 21
sulogin: --unknownopt, stderr too long: 17
write: --unknownopt, stderr too long: 12
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
2017-06-18 08:19:39 -05:00
|
|
|
checkusage:
|
|
|
|
@ $(top_srcdir)/tools/checkusage.sh \
|
|
|
|
$(bin_PROGRAMS) $(sbin_PROGRAMS) \
|
|
|
|
$(usrbin_exec_PROGRAMS) $(usrsbin_exec_PROGRAMS)
|
2019-04-24 11:02:39 -05:00
|
|
|
checklibdoc:
|
|
|
|
@ $(top_srcdir)/tools/checklibdocs.sh \
|
|
|
|
$(top_srcdir)/libmount/src/libmount.sym \
|
|
|
|
$(top_srcdir)/libmount/docs/libmount-sections.txt
|
|
|
|
@ $(top_srcdir)/tools/checklibdocs.sh \
|
|
|
|
$(top_srcdir)/libfdisk/src/libfdisk.sym \
|
|
|
|
$(top_srcdir)/libfdisk/docs/libfdisk-sections.txt
|
|
|
|
@ $(top_srcdir)/tools/checklibdocs.sh \
|
|
|
|
$(top_srcdir)/libsmartcols/src/libsmartcols.sym \
|
|
|
|
$(top_srcdir)/libsmartcols/docs/libsmartcols-sections.txt
|
|
|
|
@ $(top_srcdir)/tools/checklibdocs.sh \
|
|
|
|
$(top_srcdir)/libblkid/src/libblkid.sym \
|
|
|
|
$(top_srcdir)/libblkid/docs/libblkid-sections.txt
|
tools: add checkusage.sh
Just some simple generic tests for our UL commands, regarding
options --help, --version and --unknownopt.
The script looks still a bit weired but could be polished to
be used in tests/. It would be the first time testing at least
"something" for *all* built binaries (currently 109! commands).
For the record here are the current candidates with possible
problems:
$ make checkusage
agetty: --unknownopt, stderr too long: 45
blockdev: --unknownopt, stderr too long: 28
flock: --help, no stdout
flock: --help, non-empty stderr
getopt: --help, returns error
kill: --unknownopt, stderr too short: 1
lsipc: --unknownopt, stderr too long: 77
pg: --unknownopt, stderr too long: 23
renice: --unknownopt, stderr too long: 18
rtcwake: --unknownopt, non-empty stdout
rtcwake: --unknownopt, stderr too long: 21
sulogin: --unknownopt, stderr too long: 17
write: --unknownopt, stderr too long: 12
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
2017-06-18 08:19:39 -05:00
|
|
|
|
2014-06-02 16:59:07 -05:00
|
|
|
DISTCHECK_CONFIGURE_FLAGS = \
|
|
|
|
--disable-use-tty-group \
|
|
|
|
--disable-silent-rules \
|
|
|
|
--enable-all-programs \
|
2017-06-26 09:54:57 -05:00
|
|
|
--disable-makeinstall-chown \
|
2015-03-06 07:23:57 -06:00
|
|
|
--enable-static-programs \
|
2014-06-02 16:59:07 -05:00
|
|
|
--enable-gtk-doc \
|
|
|
|
--with-python \
|
|
|
|
--with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
|
|
|
|
--with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir)
|
2011-03-31 15:10:07 -05:00
|
|
|
|
|
|
|
BUILT_SOURCES = .version
|
|
|
|
.version:
|
|
|
|
echo $(VERSION) > $@-t && mv $@-t $@
|
|
|
|
|
2012-01-18 14:29:52 -06:00
|
|
|
CHANGELOG_FILE = v$(VERSION)-ChangeLog
|
2012-01-19 03:32:32 -06:00
|
|
|
|
|
|
|
$(CHANGELOG_FILE):
|
|
|
|
@ if test "x$$PREVIOUS_VERSION" == "x"; then \
|
2012-01-18 14:29:52 -06:00
|
|
|
echo "Usage make changelog PREVIOUS_VERSION=<version>"; \
|
|
|
|
exit 1; \
|
|
|
|
fi
|
|
|
|
@ echo "Changes between v$(PREVIOUS_VERSION) and v$(VERSION)" > $(CHANGELOG_FILE)
|
|
|
|
@ echo "--------------------------------------------" >> $(CHANGELOG_FILE)
|
|
|
|
@ echo >> $(CHANGELOG_FILE)
|
|
|
|
$(AM_V_GEN) git log --stat v$(PREVIOUS_VERSION)..HEAD >> $(CHANGELOG_FILE)
|
2012-06-26 11:31:53 -05:00
|
|
|
#
|
|
|
|
#
|
|
|
|
# smatch scan -- smatch and cgcc are expected in $PATH
|
|
|
|
#
|
|
|
|
checksmatch:
|
|
|
|
$(MAKE) CHECK="smatch --data=$(abs_top_srcdir)/tools/smatch-data" CC=cgcc
|
2012-01-18 14:29:52 -06:00
|
|
|
|
2019-03-05 04:38:44 -06:00
|
|
|
check-programs: $(check_PROGRAMS)
|
|
|
|
|
2012-01-19 03:32:32 -06:00
|
|
|
changelog: $(CHANGELOG_FILE)
|
|
|
|
|
2012-06-26 10:44:15 -05:00
|
|
|
install-exec-hook: $(INSTALL_EXEC_HOOKS)
|
|
|
|
|
|
|
|
uninstall-hook: $(UNINSTALL_HOOKS)
|
|
|
|
|
|
|
|
install-data-hook: $(INSTALL_DATA_HOOKS)
|
2012-01-19 03:32:32 -06:00
|
|
|
|
2012-06-01 08:30:56 -05:00
|
|
|
clean-local: $(CLEAN_LOCALS)
|
2012-08-03 14:24:51 -05:00
|
|
|
|
|
|
|
check-local: $(CHECK_LOCALS)
|