mirror of
https://git.kernel.org/pub/scm/network/iproute2/iproute2.git
synced 2026-01-31 00:14:16 +00:00
Add support for the so called "stateless" configuration pattern (read from /etc, fall back to /usr), giving system administrators a way to define local configuration without changing any distro-provided files. In practice this means that each configuration file FOO is loaded from /usr/lib/iproute2/FOO unless /etc/iproute2/FOO exists. Signed-off-by: Gioele Barabucci <gioele@svario.it> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
30 lines
714 B
Makefile
30 lines
714 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
TARGETS = ip-address.8 ip-link.8 ip-netns.8 ip-route.8
|
|
|
|
MAN8PAGES = $(TARGETS) $(filter-out $(TARGETS),$(wildcard *.8))
|
|
|
|
all: $(TARGETS)
|
|
|
|
%: %.in
|
|
sed \
|
|
-e "s|@NETNS_ETC_DIR@|$(NETNS_ETC_DIR)|g" \
|
|
-e "s|@NETNS_RUN_DIR@|$(NETNS_RUN_DIR)|g" \
|
|
-e "s|@SYSCONF_ETC_DIR@|$(CONF_ETC_DIR)|g" \
|
|
-e "s|@SYSCONF_USR_DIR@|$(CONF_USR_DIR)|g" \
|
|
$< > $@
|
|
|
|
distclean: clean
|
|
|
|
clean:
|
|
@rm -f $(TARGETS)
|
|
|
|
install:
|
|
$(INSTALLDIR) $(DESTDIR)$(MANDIR)/man8
|
|
$(INSTALLMAN) $(MAN8PAGES) $(DESTDIR)$(MANDIR)/man8
|
|
|
|
check: all
|
|
@for page in $(MAN8PAGES); do test 0 -eq $$($(MAN_CHECK) $$page \
|
|
$(MAN_REDIRECT)) || { echo "Error in $$page"; exit 1; }; done
|
|
|
|
.PHONY: install clean distclean check
|