|
|
ee47b4 |
From c986aa5bc5f509f3cbc033212e0808a992ec48bf Mon Sep 17 00:00:00 2001
|
|
|
ee47b4 |
From: John Fastabend <john.r.fastabend@intel.com>
|
|
|
ee47b4 |
Date: Fri, 30 Jan 2015 08:32:07 -0800
|
|
|
ee47b4 |
Subject: [PATCH] lldp: automake fixes for dist/distcheck
|
|
|
ee47b4 |
|
|
|
ee47b4 |
This fixes the dist and distcheck automake targets for making release
|
|
|
ee47b4 |
archives.
|
|
|
ee47b4 |
|
|
|
ee47b4 |
All missing header files that have been added to git are listed in
|
|
|
ee47b4 |
noinst_HEADERS, so they get added to the release archive but are not
|
|
|
ee47b4 |
installed. Some of these ( qgb_vdp22_(cmds|clif).h ) may be part of the
|
|
|
ee47b4 |
client API and need to be moved to lldpad_include_HEADERS?
|
|
|
ee47b4 |
|
|
|
ee47b4 |
The srcdir prefix was removed from references to liblldp_clif.la, it's
|
|
|
ee47b4 |
not needed and breaks builds where the output dir is different from the
|
|
|
ee47b4 |
source dir as this is a generated file.
|
|
|
ee47b4 |
|
|
|
ee47b4 |
The liblldp_clid-vdp22.3 man page was added.
|
|
|
ee47b4 |
|
|
|
ee47b4 |
The qbg22sim and vdptest man pages were added to the release archive,
|
|
|
ee47b4 |
but still should only be installed if debug is configured.
|
|
|
ee47b4 |
|
|
|
ee47b4 |
lldpad.init was added to dist_noinst_DATA to add to the release
|
|
|
ee47b4 |
|
|
|
ee47b4 |
The custom systemd unit file install rule was replaced with a dist_DATA
|
|
|
ee47b4 |
definition, letting automake build the rules to handle them. Before
|
|
|
ee47b4 |
they were being left out of the release archive.
|
|
|
ee47b4 |
|
|
|
ee47b4 |
Same thing with the bash completion files, just tell automake where they
|
|
|
ee47b4 |
go.
|
|
|
ee47b4 |
|
|
|
ee47b4 |
Compared to git-archive, make dist now gets almost everything.
|
|
|
ee47b4 |
I left the test data files out for now, even though the binaries and
|
|
|
ee47b4 |
man pages are being included.
|
|
|
ee47b4 |
|
|
|
ee47b4 |
Signed-off-by: Chris Leech <cleech@redhat.com>
|
|
|
ee47b4 |
Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
|
|
|
ee47b4 |
---
|
|
|
ee47b4 |
Makefile.am | 42 ++++++++++++++++++------------------------
|
|
|
ee47b4 |
1 file changed, 18 insertions(+), 24 deletions(-)
|
|
|
ee47b4 |
|
|
|
ee47b4 |
diff --git a/Makefile.am b/Makefile.am
|
|
|
ee47b4 |
index 27dffc2..69deda2 100644
|
|
|
ee47b4 |
--- a/Makefile.am
|
|
|
ee47b4 |
+++ b/Makefile.am
|
|
|
ee47b4 |
@@ -43,7 +43,10 @@ include/lldp_8023_clif.h include/lldp_dcbx_clif.h include/lldp_evb_clif.h \
|
|
|
ee47b4 |
include/lldp_evb22_clif.h include/qbg_vdp_clif.h include/qbg_vdpnl.h \
|
|
|
ee47b4 |
include/qbg_vdp22_clif.h include/lldp_8021qaz_clif.h \
|
|
|
ee47b4 |
include/lldp_orgspec_clif.h include/lldp_cisco_clif.h \
|
|
|
ee47b4 |
-include/lldptool.h include/lldp_rtnl.h include/dcbtool.h include/lldp_dcbx_cfg.h
|
|
|
ee47b4 |
+include/lldptool.h include/lldp_rtnl.h include/dcbtool.h include/lldp_dcbx_cfg.h \
|
|
|
ee47b4 |
+include/qbg_vdp22_cmds.h include/qbg_vdp22_clif.h \
|
|
|
ee47b4 |
+include/linux/ethtool.h include/linux/if_bonding.h include/linux/if_bridge.h \
|
|
|
ee47b4 |
+include/linux/if.h include/linux/if_link.h include/linux/if_vlan.h
|
|
|
ee47b4 |
|
|
|
ee47b4 |
lldpad_SOURCES = lldpad.c config.c lldp_dcbx_nl.c ctrl_iface.c \
|
|
|
ee47b4 |
event_iface.c eloop.c lldp_dcbx_cmds.c log.c lldpad_shm.c \
|
|
|
ee47b4 |
@@ -84,7 +87,7 @@ vdptool_LDFLAGS = -llldp_clif $(LIBNL_LIBS)
|
|
|
ee47b4 |
|
|
|
ee47b4 |
dcbtool_SOURCES = dcbtool.c dcbtool_cmds.c parse_cli.l \
|
|
|
ee47b4 |
weak_readline.c $(lldpad_include_HEADERS) $(noinst_HEADERS)
|
|
|
ee47b4 |
-dcbtool_LDADD = ${srcdir}/liblldp_clif.la
|
|
|
ee47b4 |
+dcbtool_LDADD = liblldp_clif.la
|
|
|
ee47b4 |
dcbtool_LDFLAGS = -ldl -llldp_clif
|
|
|
ee47b4 |
|
|
|
ee47b4 |
lldptool_SOURCES = lldptool.c lldptool_cmds.c lldp_rtnl.c \
|
|
|
ee47b4 |
@@ -93,7 +96,7 @@ lldptool_SOURCES = lldptool.c lldptool_cmds.c lldp_rtnl.c \
|
|
|
ee47b4 |
lldp_8021qaz_clif.c lldp_evb_clif.c qbg/vdp_clif.c \
|
|
|
ee47b4 |
lldp_orgspec_clif.c lldp_cisco_clif.c lldp_evb22_clif.c \
|
|
|
ee47b4 |
weak_readline.c $(lldpad_include_HEADERS) $(noinst_HEADERS)
|
|
|
ee47b4 |
-lldptool_LDADD = ${srcdir}/liblldp_clif.la
|
|
|
ee47b4 |
+lldptool_LDADD = liblldp_clif.la
|
|
|
ee47b4 |
lldptool_LDFLAGS = -ldl -llldp_clif $(LIBNL_LIBS)
|
|
|
ee47b4 |
|
|
|
ee47b4 |
if BUILD_DEBUG
|
|
|
ee47b4 |
@@ -104,14 +107,20 @@ qbg22sim_SOURCES = test/qbg22sim.c
|
|
|
ee47b4 |
qbg22sim_LDFLAGS = -lrt
|
|
|
ee47b4 |
endif
|
|
|
ee47b4 |
|
|
|
ee47b4 |
+## put a spec file and documentation in the distribution archive
|
|
|
ee47b4 |
+dist_noinst_DATA = lldpad.spec README COPYING ChangeLog lldpad.init
|
|
|
ee47b4 |
+
|
|
|
ee47b4 |
## man pages
|
|
|
ee47b4 |
dist_man_MANS = docs/lldpad.8 docs/dcbtool.8 docs/lldptool.8 \
|
|
|
ee47b4 |
docs/lldptool-ets.8 docs/lldptool-pfc.8 docs/lldptool-app.8 \
|
|
|
ee47b4 |
docs/lldptool-evb.8 docs/lldptool-vdp.8 docs/lldptool-med.8 \
|
|
|
ee47b4 |
docs/lldptool-dcbx.8 \
|
|
|
ee47b4 |
- docs/lldptool-evb22.8 docs/vdptool.8
|
|
|
ee47b4 |
+ docs/lldptool-evb22.8 docs/vdptool.8 \
|
|
|
ee47b4 |
+ docs/liblldp_clif-vdp22.3
|
|
|
ee47b4 |
if BUILD_DEBUG
|
|
|
ee47b4 |
-nodist_man_MANS = test/qbg22sim.1 test/vdptest.1
|
|
|
ee47b4 |
+dist_man_MANS += test/qbg22sim.1 test/vdptest.1
|
|
|
ee47b4 |
+else
|
|
|
ee47b4 |
+dist_noinst_DATA += test/qbg22sim.1 test/vdptest.1
|
|
|
ee47b4 |
endif
|
|
|
ee47b4 |
|
|
|
ee47b4 |
## force the creation of an empty configuration directory at install time
|
|
|
ee47b4 |
@@ -124,24 +133,9 @@ install-data-hook: installdirs-local
|
|
|
ee47b4 |
pkgconfigdir = ${libdir}/pkgconfig
|
|
|
ee47b4 |
pkgconfig_DATA = lldpad.pc liblldp_clif.pc
|
|
|
ee47b4 |
|
|
|
ee47b4 |
-## put a spec file and documentation in the distribution archive
|
|
|
ee47b4 |
-dist_noinst_DATA = lldpad.spec README COPYING ChangeLog
|
|
|
ee47b4 |
+systemdsystemunitdir = $(prefix)/lib/systemd/system
|
|
|
ee47b4 |
+dist_systemdsystemunit_DATA = lldpad.service lldpad.socket
|
|
|
ee47b4 |
|
|
|
ee47b4 |
-## special hooks to handle the init script
|
|
|
ee47b4 |
-install-data-local: lldpad.service lldpad.socket
|
|
|
ee47b4 |
- $(MKDIR_P) $(DESTDIR)/usr/lib/systemd/system
|
|
|
ee47b4 |
- $(INSTALL_DATA) lldpad.service $(DESTDIR)/usr/lib/systemd/system/lldpad.service
|
|
|
ee47b4 |
- $(INSTALL_DATA) lldpad.socket $(DESTDIR)/usr/lib/systemd/system/lldpad.socket
|
|
|
ee47b4 |
-
|
|
|
ee47b4 |
-BASH_COMPLETION_DIR=/etc/bash_completion.d/
|
|
|
ee47b4 |
-
|
|
|
ee47b4 |
-install-data-hook:
|
|
|
ee47b4 |
- ## provide support for bash completion
|
|
|
ee47b4 |
- $(MKDIR_P) $(DESTDIR)/$(BASH_COMPLETION_DIR)
|
|
|
ee47b4 |
- $(INSTALL_DATA) ${srcdir}/contrib/bash_completion/* $(DESTDIR)/$(BASH_COMPLETION_DIR)
|
|
|
ee47b4 |
-
|
|
|
ee47b4 |
-uninstall-local:
|
|
|
ee47b4 |
- rm -f '$(DESTDIR)/usr/lib/systemd/system/lldpad.*'
|
|
|
ee47b4 |
- rm -f '$(includedir)/dcbd/clif_cmds.h'
|
|
|
ee47b4 |
- rm -f '$(includedir)/dcbd'
|
|
|
ee47b4 |
+bashcompletiondir = $(sysconfdir)/bash_completion.d
|
|
|
ee47b4 |
+dist_bashcompletion_DATA = contrib/bash_completion/lldpad contrib/bash_completion/lldptool
|
|
|
ee47b4 |
|
|
|
ee47b4 |
--
|
|
|
ee47b4 |
2.1.0
|
|
|
ee47b4 |
|