mirror of
https://git.proxmox.com/git/mirror_iproute2
synced 2025-10-17 23:37:11 +00:00

As it turned out, forgetting to add a man page to the respective Makefile when introducing it is a common mistake. Overcome this once and for all by using $(wildcard) function in Makefiles. Fixes:7124942942
("genl: add manpage") Fixes:958cd21094
("ifcfg: add manpage") Fixes:e1b7f883e5
("man: add documentation for IPv6 SR commands") Fixes:1949f82cdf
("Introduce ip vrf command") Fixes:535194a172
("tipc: add peer remove functionality") Signed-off-by: Phil Sutter <phil@nwl.cc>
26 lines
519 B
Makefile
26 lines
519 B
Makefile
TARGETS = ip-address.8 ip-link.8 ip-route.8
|
|
|
|
MAN8PAGES = $(TARGETS) $(filter-out $(TARGETS),$(wildcard *.8))
|
|
|
|
all: $(TARGETS)
|
|
|
|
ip-address.8: ip-address.8.in
|
|
sed "s|@SYSCONFDIR@|$(CONFDIR)|g" $< > $@
|
|
|
|
ip-link.8: ip-link.8.in
|
|
sed "s|@SYSCONFDIR@|$(CONFDIR)|g" $< > $@
|
|
|
|
ip-route.8: ip-route.8.in
|
|
sed "s|@SYSCONFDIR@|$(CONFDIR)|g" $< > $@
|
|
|
|
distclean: clean
|
|
|
|
clean:
|
|
@rm -f $(TARGETS)
|
|
|
|
install:
|
|
$(INSTALLDIR) $(DESTDIR)$(MANDIR)/man8
|
|
$(INSTALLMAN) $(MAN8PAGES) $(DESTDIR)$(MANDIR)/man8
|
|
|
|
.PHONY: install clean distclean
|