Revive 'make distcheck'
This commit is contained in:
parent
a9bdd8e41a
commit
82399a9239
|
|
@ -8,7 +8,7 @@ build:
|
||||||
- ./bootstrap
|
- ./bootstrap
|
||||||
- ./configure --with-linux-dir=/usr/src/linux-obj/$(uname -i)/default --disable-8139too
|
- ./configure --with-linux-dir=/usr/src/linux-obj/$(uname -i)/default --disable-8139too
|
||||||
- make -j8 all modules
|
- make -j8 all modules
|
||||||
|
- make DISTCHECK_CONFIGURE_FLAGS="--with-linux-dir=/usr/src/linux-obj/$(uname -i)/default" distcheck
|
||||||
|
|
||||||
include:
|
include:
|
||||||
- template: 'Workflows/MergeRequest-Pipelines.gitlab-ci.yml'
|
- template: 'Workflows/MergeRequest-Pipelines.gitlab-ci.yml'
|
||||||
|
|
||||||
|
|
|
||||||
10
Makefile.am
10
Makefile.am
|
|
@ -26,6 +26,7 @@
|
||||||
# industrial property and similar rights of Beckhoff Automation GmbH.
|
# industrial property and similar rights of Beckhoff Automation GmbH.
|
||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
include $(top_srcdir)/Makefile.kbuild
|
||||||
|
|
||||||
ACLOCAL_AMFLAGS = -I m4
|
ACLOCAL_AMFLAGS = -I m4
|
||||||
|
|
||||||
|
|
@ -67,20 +68,13 @@ EXTRA_DIST = \
|
||||||
README.EoE \
|
README.EoE \
|
||||||
ethercat.spec
|
ethercat.spec
|
||||||
|
|
||||||
modules:
|
|
||||||
$(MAKE) -C "$(LINUX_SOURCE_DIR)" M="@abs_srcdir@" modules
|
|
||||||
|
|
||||||
modules_install:
|
|
||||||
$(MAKE) -C "$(LINUX_SOURCE_DIR)" M="@abs_srcdir@" \
|
|
||||||
INSTALL_MOD_DIR="$(INSTALL_MOD_DIR)" modules_install
|
|
||||||
|
|
||||||
mydist:
|
mydist:
|
||||||
git -C $(srcdir) log > ChangeLog
|
git -C $(srcdir) log > ChangeLog
|
||||||
@REV=`git -C $(srcdir) describe` && \
|
@REV=`git -C $(srcdir) describe` && \
|
||||||
$(MAKE) dist-bzip2 distdir=$(PACKAGE)-$(VERSION)-$${REV}
|
$(MAKE) dist-bzip2 distdir=$(PACKAGE)-$(VERSION)-$${REV}
|
||||||
|
|
||||||
dist-hook:
|
dist-hook:
|
||||||
if which git >/dev/null 2>&1; then \
|
-if which git >/dev/null 2>&1; then \
|
||||||
git -C $(srcdir) describe 2>/dev/null >$(distdir)/revision; \
|
git -C $(srcdir) describe 2>/dev/null >$(distdir)/revision; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,29 @@
|
||||||
|
# Shared makefile code providing support for Kbuild make. It is included
|
||||||
|
# by every `Makefile.am` that needs Kbuild support with:
|
||||||
|
# ```
|
||||||
|
# include $(top_srcdir)/Makefile.kbuild
|
||||||
|
# ```
|
||||||
|
KBUILD = $(MAKE) -C "$(LINUX_SOURCE_DIR)" M="$(abs_srcdir)" INSTALL_MOD_DIR="$(INSTALL_MOD_DIR)"
|
||||||
|
|
||||||
|
|
||||||
|
modules:
|
||||||
|
$(KBUILD) modules
|
||||||
|
|
||||||
|
modules_install:
|
||||||
|
$(KBUILD) modules_install
|
||||||
|
|
||||||
|
|
||||||
|
# Call Kbuild clean *before* automake `clean` (see #5 for the rationale)
|
||||||
|
# by adding `kbuild-clean` to the clean prerequisites. Having targets
|
||||||
|
# with the same name will result in merging the prerequisites, i.e.:
|
||||||
|
# ```
|
||||||
|
# # Equivalent to 'clean: prerequisite1 prerequisite2'
|
||||||
|
# clean: prerequisite1
|
||||||
|
# clean: prerequisite2
|
||||||
|
# ```
|
||||||
|
clean: kbuild-clean
|
||||||
|
|
||||||
|
kbuild-clean:
|
||||||
|
$(KBUILD) clean
|
||||||
|
|
||||||
|
.PHONY: kbuild-clean
|
||||||
|
|
@ -41,7 +41,8 @@ AC_PREREQ(2.59)
|
||||||
#
|
#
|
||||||
AC_INIT([ethercat],[1.5.2],[fp@igh-essen.com])
|
AC_INIT([ethercat],[1.5.2],[fp@igh-essen.com])
|
||||||
AC_CONFIG_AUX_DIR([autoconf])
|
AC_CONFIG_AUX_DIR([autoconf])
|
||||||
AM_INIT_AUTOMAKE([-Wall -Werror dist-bzip2 subdir-objects])
|
AM_INIT_AUTOMAKE([-Wall -Wno-override -Werror dist-bzip2 subdir-objects])
|
||||||
|
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
|
||||||
AC_CONFIG_HEADERS([config.h])
|
AC_CONFIG_HEADERS([config.h])
|
||||||
AC_CONFIG_SRCDIR([config.h.in])
|
AC_CONFIG_SRCDIR([config.h.in])
|
||||||
AC_CONFIG_MACRO_DIR([m4])
|
AC_CONFIG_MACRO_DIR([m4])
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,7 @@
|
||||||
# industrial property and similar rights of Beckhoff Automation GmbH.
|
# industrial property and similar rights of Beckhoff Automation GmbH.
|
||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
include $(top_srcdir)/Makefile.kbuild
|
||||||
|
|
||||||
SUBDIRS = \
|
SUBDIRS = \
|
||||||
ccat \
|
ccat \
|
||||||
|
|
@ -174,14 +175,4 @@ noinst_HEADERS = \
|
||||||
r8169-4.4-ethercat.c \
|
r8169-4.4-ethercat.c \
|
||||||
r8169-4.4-orig.c
|
r8169-4.4-orig.c
|
||||||
|
|
||||||
modules:
|
|
||||||
$(MAKE) -C "$(LINUX_SOURCE_DIR)" M="@abs_srcdir@" modules
|
|
||||||
|
|
||||||
modules_install:
|
|
||||||
$(MAKE) -C "$(LINUX_SOURCE_DIR)" M="@abs_srcdir@" \
|
|
||||||
INSTALL_MOD_DIR="$(INSTALL_MOD_DIR)" modules_install
|
|
||||||
|
|
||||||
clean-local:
|
|
||||||
$(MAKE) -C "$(LINUX_SOURCE_DIR)" M="@abs_srcdir@" clean
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
|
@ -26,20 +26,11 @@
|
||||||
# industrial property and similar rights of Beckhoff Automation GmbH.
|
# industrial property and similar rights of Beckhoff Automation GmbH.
|
||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
include $(top_srcdir)/Makefile.kbuild
|
||||||
|
|
||||||
EXTRA_DIST = \
|
EXTRA_DIST = \
|
||||||
module.h \
|
module.h \
|
||||||
netdev.h \
|
netdev.h \
|
||||||
update.h
|
update.h
|
||||||
|
|
||||||
modules:
|
|
||||||
$(MAKE) -C "$(LINUX_SOURCE_DIR)" M="@abs_srcdir@" modules
|
|
||||||
|
|
||||||
modules_install:
|
|
||||||
$(MAKE) -C "$(LINUX_SOURCE_DIR)" M="@abs_srcdir@" \
|
|
||||||
INSTALL_MOD_DIR="$(INSTALL_MOD_DIR)" modules_install
|
|
||||||
|
|
||||||
clean-local:
|
|
||||||
$(MAKE) -C "$(LINUX_SOURCE_DIR)" M="@abs_srcdir@" clean
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,7 @@
|
||||||
# industrial property and similar rights of Beckhoff Automation GmbH.
|
# industrial property and similar rights of Beckhoff Automation GmbH.
|
||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
include $(top_srcdir)/Makefile.kbuild
|
||||||
|
|
||||||
EXTRA_DIST = \
|
EXTRA_DIST = \
|
||||||
LICENSE \
|
LICENSE \
|
||||||
|
|
@ -352,15 +353,4 @@ EXTRA_DIST = \
|
||||||
e1000_param-4.4-ethercat.c \
|
e1000_param-4.4-ethercat.c \
|
||||||
e1000_param-4.4-orig.c
|
e1000_param-4.4-orig.c
|
||||||
|
|
||||||
|
|
||||||
modules:
|
|
||||||
$(MAKE) -C "$(LINUX_SOURCE_DIR)" M="@abs_srcdir@" modules
|
|
||||||
|
|
||||||
modules_install:
|
|
||||||
$(MAKE) -C "$(LINUX_SOURCE_DIR)" M="@abs_srcdir@" \
|
|
||||||
INSTALL_MOD_DIR="$(INSTALL_MOD_DIR)" modules_install
|
|
||||||
|
|
||||||
clean-local:
|
|
||||||
$(MAKE) -C "$(LINUX_SOURCE_DIR)" M="@abs_srcdir@" clean
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,7 @@
|
||||||
# industrial property and similar rights of Beckhoff Automation GmbH.
|
# industrial property and similar rights of Beckhoff Automation GmbH.
|
||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
include $(top_srcdir)/Makefile.kbuild
|
||||||
|
|
||||||
EXTRA_DIST = \
|
EXTRA_DIST = \
|
||||||
80003es2lan-3.10-ethercat.c \
|
80003es2lan-3.10-ethercat.c \
|
||||||
|
|
@ -460,14 +461,4 @@ EXTRA_DIST = \
|
||||||
regs-4.4-orig.h \
|
regs-4.4-orig.h \
|
||||||
update.sh
|
update.sh
|
||||||
|
|
||||||
modules:
|
|
||||||
$(MAKE) -C "$(LINUX_SOURCE_DIR)" M="@abs_srcdir@" modules
|
|
||||||
|
|
||||||
modules_install:
|
|
||||||
$(MAKE) -C "$(LINUX_SOURCE_DIR)" M="@abs_srcdir@" \
|
|
||||||
INSTALL_MOD_DIR="$(INSTALL_MOD_DIR)" modules_install
|
|
||||||
|
|
||||||
clean-local:
|
|
||||||
$(MAKE) -C "$(LINUX_SOURCE_DIR)" M="@abs_srcdir@" clean
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,7 @@
|
||||||
# industrial property and similar rights of Beckhoff Automation GmbH.
|
# industrial property and similar rights of Beckhoff Automation GmbH.
|
||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
include $(top_srcdir)/Makefile.kbuild
|
||||||
|
|
||||||
EXTRA_DIST = \
|
EXTRA_DIST = \
|
||||||
e1000_82575-3.18-ethercat.c \
|
e1000_82575-3.18-ethercat.c \
|
||||||
|
|
@ -110,14 +111,4 @@ EXTRA_DIST = \
|
||||||
igb_ptp-4.4-orig.c \
|
igb_ptp-4.4-orig.c \
|
||||||
update.sh
|
update.sh
|
||||||
|
|
||||||
modules:
|
|
||||||
$(MAKE) -C "$(LINUX_SOURCE_DIR)" M="@abs_srcdir@" modules
|
|
||||||
|
|
||||||
modules_install:
|
|
||||||
$(MAKE) -C "$(LINUX_SOURCE_DIR)" M="@abs_srcdir@" \
|
|
||||||
INSTALL_MOD_DIR="$(INSTALL_MOD_DIR)" modules_install
|
|
||||||
|
|
||||||
clean-local:
|
|
||||||
$(MAKE) -C "$(LINUX_SOURCE_DIR)" M="@abs_srcdir@" clean
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,7 @@
|
||||||
# industrial property and similar rights of Beckhoff Automation GmbH.
|
# industrial property and similar rights of Beckhoff Automation GmbH.
|
||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
include $(top_srcdir)/Makefile.kbuild
|
||||||
|
|
||||||
SUBDIRS =
|
SUBDIRS =
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -28,18 +28,9 @@
|
||||||
# industrial property and similar rights of Beckhoff Automation GmbH.
|
# industrial property and similar rights of Beckhoff Automation GmbH.
|
||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
include $(top_srcdir)/Makefile.kbuild
|
||||||
|
|
||||||
EXTRA_DIST = \
|
EXTRA_DIST = \
|
||||||
dc_rtai_sample.c
|
dc_rtai_sample.c
|
||||||
|
|
||||||
modules:
|
|
||||||
$(MAKE) -C "$(LINUX_SOURCE_DIR)" M="@abs_srcdir@" modules
|
|
||||||
|
|
||||||
modules_install:
|
|
||||||
$(MAKE) -C "$(LINUX_SOURCE_DIR)" M="@abs_srcdir@" \
|
|
||||||
INSTALL_MOD_DIR="$(INSTALL_MOD_DIR)" modules_install
|
|
||||||
|
|
||||||
clean-local:
|
|
||||||
$(MAKE) -C "$(LINUX_SOURCE_DIR)" M="@abs_srcdir@" clean
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
|
@ -30,18 +30,9 @@
|
||||||
# industrial property and similar rights of Beckhoff Automation GmbH.
|
# industrial property and similar rights of Beckhoff Automation GmbH.
|
||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
include $(top_srcdir)/Makefile.kbuild
|
||||||
|
|
||||||
EXTRA_DIST = \
|
EXTRA_DIST = \
|
||||||
mini.c
|
mini.c
|
||||||
|
|
||||||
modules:
|
|
||||||
$(MAKE) -C "$(LINUX_SOURCE_DIR)" M="@abs_srcdir@" modules
|
|
||||||
|
|
||||||
modules_install:
|
|
||||||
$(MAKE) -C "$(LINUX_SOURCE_DIR)" M="@abs_srcdir@" \
|
|
||||||
INSTALL_MOD_DIR="$(INSTALL_MOD_DIR)" modules_install
|
|
||||||
|
|
||||||
clean-local:
|
|
||||||
$(MAKE) -C "$(LINUX_SOURCE_DIR)" M="@abs_srcdir@" clean
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
|
@ -28,18 +28,9 @@
|
||||||
# industrial property and similar rights of Beckhoff Automation GmbH.
|
# industrial property and similar rights of Beckhoff Automation GmbH.
|
||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
include $(top_srcdir)/Makefile.kbuild
|
||||||
|
|
||||||
EXTRA_DIST = \
|
EXTRA_DIST = \
|
||||||
rtai_sample.c
|
rtai_sample.c
|
||||||
|
|
||||||
modules:
|
|
||||||
$(MAKE) -C "$(LINUX_SOURCE_DIR)" M="@abs_srcdir@" modules
|
|
||||||
|
|
||||||
modules_install:
|
|
||||||
$(MAKE) -C "$(LINUX_SOURCE_DIR)" M="@abs_srcdir@" \
|
|
||||||
INSTALL_MOD_DIR="$(INSTALL_MOD_DIR)" modules_install
|
|
||||||
|
|
||||||
clean-local:
|
|
||||||
$(MAKE) -C "$(LINUX_SOURCE_DIR)" M="@abs_srcdir@" clean
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
|
@ -30,20 +30,11 @@
|
||||||
# industrial property and similar rights of Beckhoff Automation GmbH.
|
# industrial property and similar rights of Beckhoff Automation GmbH.
|
||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
include $(top_srcdir)/Makefile.kbuild
|
||||||
|
|
||||||
noinst_HEADERS = \
|
noinst_HEADERS = \
|
||||||
serial.c \
|
serial.c \
|
||||||
serial.h \
|
serial.h \
|
||||||
tty.c
|
tty.c
|
||||||
|
|
||||||
modules:
|
|
||||||
$(MAKE) -C "$(LINUX_SOURCE_DIR)" M="@abs_srcdir@" modules
|
|
||||||
|
|
||||||
modules_install:
|
|
||||||
$(MAKE) -C "$(LINUX_SOURCE_DIR)" M="@abs_srcdir@" \
|
|
||||||
INSTALL_MOD_DIR="$(INSTALL_MOD_DIR)" modules_install
|
|
||||||
|
|
||||||
clean-local:
|
|
||||||
$(MAKE) -C "$(LINUX_SOURCE_DIR)" M="@abs_srcdir@" clean
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
|
@ -79,6 +79,11 @@ cmakedir = $(libdir)/cmake
|
||||||
|
|
||||||
cmake_DATA = EtherCATConfig.cmake
|
cmake_DATA = EtherCATConfig.cmake
|
||||||
|
|
||||||
|
EXTRA_DIST = EtherCATConfig.cmake.in
|
||||||
|
|
||||||
|
CLEANFILES = $(cmake_DATA)
|
||||||
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
if ENABLE_RTDM
|
if ENABLE_RTDM
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,7 @@
|
||||||
# industrial property and similar rights of Beckhoff Automation GmbH.
|
# industrial property and similar rights of Beckhoff Automation GmbH.
|
||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
include $(top_srcdir)/Makefile.kbuild
|
||||||
|
|
||||||
# using HEADERS to enable tags target
|
# using HEADERS to enable tags target
|
||||||
noinst_HEADERS = \
|
noinst_HEADERS = \
|
||||||
|
|
@ -74,14 +75,4 @@ noinst_HEADERS = \
|
||||||
sync_config.c sync_config.h \
|
sync_config.c sync_config.h \
|
||||||
voe_handler.c voe_handler.h
|
voe_handler.c voe_handler.h
|
||||||
|
|
||||||
modules:
|
|
||||||
$(MAKE) -C "$(LINUX_SOURCE_DIR)" M="@abs_srcdir@" modules
|
|
||||||
|
|
||||||
modules_install:
|
|
||||||
$(MAKE) -C "$(LINUX_SOURCE_DIR)" M="@abs_srcdir@" \
|
|
||||||
INSTALL_MOD_DIR="$(INSTALL_MOD_DIR)" modules_install
|
|
||||||
|
|
||||||
clean-local:
|
|
||||||
$(MAKE) -C "$(LINUX_SOURCE_DIR)" M="@abs_srcdir@" clean
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,7 @@
|
||||||
# industrial property and similar rights of Beckhoff Automation GmbH.
|
# industrial property and similar rights of Beckhoff Automation GmbH.
|
||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
include $(top_srcdir)/Makefile.kbuild
|
||||||
|
|
||||||
# using HEADERS to enable tags target
|
# using HEADERS to enable tags target
|
||||||
noinst_HEADERS = \
|
noinst_HEADERS = \
|
||||||
|
|
@ -34,14 +35,4 @@ noinst_HEADERS = \
|
||||||
EXTRA_DIST = \
|
EXTRA_DIST = \
|
||||||
README
|
README
|
||||||
|
|
||||||
modules:
|
|
||||||
$(MAKE) -C "$(LINUX_SOURCE_DIR)" M="@abs_srcdir@" modules
|
|
||||||
|
|
||||||
modules_install:
|
|
||||||
$(MAKE) -C "$(LINUX_SOURCE_DIR)" M="@abs_srcdir@" \
|
|
||||||
INSTALL_MOD_DIR="$(INSTALL_MOD_DIR)" modules_install
|
|
||||||
|
|
||||||
clean-local:
|
|
||||||
$(MAKE) -C "$(LINUX_SOURCE_DIR)" M="@abs_srcdir@" clean
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue