mirror of
https://gitlab.com/etherlab.org/ethercat.git
synced 2026-02-05 19:39:50 +08:00
Revive 'make distcheck'
This commit is contained in:
committed by
Florian Pose
parent
a9bdd8e41a
commit
82399a9239
@@ -8,7 +8,7 @@ build:
|
||||
- ./bootstrap
|
||||
- ./configure --with-linux-dir=/usr/src/linux-obj/$(uname -i)/default --disable-8139too
|
||||
- make -j8 all modules
|
||||
- make DISTCHECK_CONFIGURE_FLAGS="--with-linux-dir=/usr/src/linux-obj/$(uname -i)/default" distcheck
|
||||
|
||||
include:
|
||||
- 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.
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
include $(top_srcdir)/Makefile.kbuild
|
||||
|
||||
ACLOCAL_AMFLAGS = -I m4
|
||||
|
||||
@@ -67,20 +68,13 @@ EXTRA_DIST = \
|
||||
README.EoE \
|
||||
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:
|
||||
git -C $(srcdir) log > ChangeLog
|
||||
@REV=`git -C $(srcdir) describe` && \
|
||||
$(MAKE) dist-bzip2 distdir=$(PACKAGE)-$(VERSION)-$${REV}
|
||||
|
||||
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; \
|
||||
fi
|
||||
|
||||
|
||||
29
Makefile.kbuild
Normal file
29
Makefile.kbuild
Normal file
@@ -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_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_SRCDIR([config.h.in])
|
||||
AC_CONFIG_MACRO_DIR([m4])
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
# industrial property and similar rights of Beckhoff Automation GmbH.
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
include $(top_srcdir)/Makefile.kbuild
|
||||
|
||||
SUBDIRS = \
|
||||
ccat \
|
||||
@@ -174,14 +175,4 @@ noinst_HEADERS = \
|
||||
r8169-4.4-ethercat.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.
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
include $(top_srcdir)/Makefile.kbuild
|
||||
|
||||
EXTRA_DIST = \
|
||||
module.h \
|
||||
netdev.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.
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
include $(top_srcdir)/Makefile.kbuild
|
||||
|
||||
EXTRA_DIST = \
|
||||
LICENSE \
|
||||
@@ -352,15 +353,4 @@ EXTRA_DIST = \
|
||||
e1000_param-4.4-ethercat.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.
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
include $(top_srcdir)/Makefile.kbuild
|
||||
|
||||
EXTRA_DIST = \
|
||||
80003es2lan-3.10-ethercat.c \
|
||||
@@ -460,14 +461,4 @@ EXTRA_DIST = \
|
||||
regs-4.4-orig.h \
|
||||
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.
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
include $(top_srcdir)/Makefile.kbuild
|
||||
|
||||
EXTRA_DIST = \
|
||||
e1000_82575-3.18-ethercat.c \
|
||||
@@ -110,14 +111,4 @@ EXTRA_DIST = \
|
||||
igb_ptp-4.4-orig.c \
|
||||
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.
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
include $(top_srcdir)/Makefile.kbuild
|
||||
|
||||
SUBDIRS =
|
||||
|
||||
|
||||
@@ -28,18 +28,9 @@
|
||||
# industrial property and similar rights of Beckhoff Automation GmbH.
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
include $(top_srcdir)/Makefile.kbuild
|
||||
|
||||
EXTRA_DIST = \
|
||||
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.
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
include $(top_srcdir)/Makefile.kbuild
|
||||
|
||||
EXTRA_DIST = \
|
||||
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.
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
include $(top_srcdir)/Makefile.kbuild
|
||||
|
||||
EXTRA_DIST = \
|
||||
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.
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
include $(top_srcdir)/Makefile.kbuild
|
||||
|
||||
noinst_HEADERS = \
|
||||
serial.c \
|
||||
serial.h \
|
||||
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
|
||||
|
||||
EXTRA_DIST = EtherCATConfig.cmake.in
|
||||
|
||||
CLEANFILES = $(cmake_DATA)
|
||||
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
if ENABLE_RTDM
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
# industrial property and similar rights of Beckhoff Automation GmbH.
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
include $(top_srcdir)/Makefile.kbuild
|
||||
|
||||
# using HEADERS to enable tags target
|
||||
noinst_HEADERS = \
|
||||
@@ -74,14 +75,4 @@ noinst_HEADERS = \
|
||||
sync_config.c sync_config.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.
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
include $(top_srcdir)/Makefile.kbuild
|
||||
|
||||
# using HEADERS to enable tags target
|
||||
noinst_HEADERS = \
|
||||
@@ -34,14 +35,4 @@ noinst_HEADERS = \
|
||||
EXTRA_DIST = \
|
||||
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
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user