# based on tkabber's Makefile PREFIX = /usr/local SUBDIRS = plugins \ sounds \ images \ lib install: mkdir -p $(DESTDIR)/$(PREFIX)/share/milkbone cp -r *.p* *.conf $(SUBDIRS) $(DESTDIR)/$(PREFIX)/share/milkbone mkdir -p $(DESTDIR)/$(PREFIX)/share/doc/milkbone/ cp -r docs/* $(DESTDIR)/$(PREFIX)/share/doc/milkbone mkdir -p $(DESTDIR)/$(PREFIX)/bin/ echo -e "#!/bin/sh \n cd ${PREFIX}/share/milkbone \n exec $(PREFIX)/share/milkbone/mos.pl \"\$$@\"\n" > $(DESTDIR)/$(PREFIX)/bin/milkbone chmod +x $(DESTDIR)/$(PREFIX)/bin/milkbone ln -f $(DESTDIR)/$(PREFIX)/bin/milkbone /usr/bin/milkbone