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