]>
Commit | Line | Data |
---|---|---|
6054c1eb | 1 | # SPDX-License-Identifier: GPL-2.0 |
761a1e60 CT |
2 | TARGETS = ip-address.8 ip-link.8 ip-route.8 |
3 | ||
f2ca4a7a | 4 | MAN8PAGES = $(TARGETS) $(filter-out $(TARGETS),$(wildcard *.8)) |
761a1e60 CT |
5 | |
6 | all: $(TARGETS) | |
7 | ||
8 | ip-address.8: ip-address.8.in | |
9 | sed "s|@SYSCONFDIR@|$(CONFDIR)|g" $< > $@ | |
10 | ||
11 | ip-link.8: ip-link.8.in | |
12 | sed "s|@SYSCONFDIR@|$(CONFDIR)|g" $< > $@ | |
13 | ||
14 | ip-route.8: ip-route.8.in | |
15 | sed "s|@SYSCONFDIR@|$(CONFDIR)|g" $< > $@ | |
16 | ||
17 | distclean: clean | |
18 | ||
19 | clean: | |
20 | @rm -f $(TARGETS) | |
21 | ||
22 | install: | |
23 | $(INSTALLDIR) $(DESTDIR)$(MANDIR)/man8 | |
24 | $(INSTALLMAN) $(MAN8PAGES) $(DESTDIR)$(MANDIR)/man8 | |
25 | ||
26 | .PHONY: install clean distclean |