PACKAGE=plusnet-fttc VERSION=0.10 PREFIX=/usr UNITDIR=$(PREFIX)/lib/systemd/system DESTDIR= SOURCES=\ COPYING \ README \ chap-secrets.plusnet \ ip-up.plusnet \ ip-down.plusnet \ logrotate \ Makefile \ plusnet-fttc.peer \ plusnet-fttc.service dist: rm -rf $(PACKAGE)-$(VERSION) mkdir $(PACKAGE)-$(VERSION) cp -rp $(SOURCES) $(PACKAGE)-$(VERSION)/ tar cvfj $(PACKAGE)-$(VERSION).tar.bz2 $(PACKAGE)-$(VERSION) rm -rf $(PACKAGE)-$(VERSION) install: install -m 755 -d $(DESTDIR)$(UNITDIR) install -m 755 -d $(DESTDIR)/etc/logrotate.d install -m 755 -d $(DESTDIR)/etc/ppp install -m 755 -d $(DESTDIR)/etc/ppp/peers install -m 600 -p chap-secrets.plusnet $(DESTDIR)/etc/ppp/chap-secrets.plusnet install -m 755 -p ip-up.plusnet $(DESTDIR)/etc/ppp/ip-up.plusnet install -m 755 -p ip-down.plusnet $(DESTDIR)/etc/ppp/ip-down.plusnet install -m 644 -p logrotate $(DESTDIR)/etc/logrotate.d/plusnet-fttc install -m 644 -p plusnet-fttc.peer $(DESTDIR)/etc/ppp/peers/plusnet-fttc install -m 644 -p plusnet-fttc.service $(DESTDIR)$(UNITDIR)/plusnet-fttc.service