--- Makefile 2005-02-11 10:35:59.000000000 +0000 +++ Makefile.mod 2006-10-21 08:05:48.134589906 +0100 @@ -1,5 +1,5 @@ INSTALL= install -PREFIX= /usr/local +PREFIX= $(DESTDIR)/usr DISTFILES= AUTHOR COPYING INSTALL README Makefile config user.auth.example snowbox snowbox.8 VERSION= 0.9.4 @@ -9,21 +9,15 @@ @echo "Type \"make install\" to install Snowbox." install: - if [ ! -d "$(PREFIX)/sbin" ]; then \ - mkdir -p $(PREFIX)/sbin; \ - fi + mkdir -p $(PREFIX)/sbin install snowbox $(PREFIX)/sbin - if [ ! -d "$(PREFIX)/man/man8" ]; then \ - mkdir -p $(PREFIX)/man/man8; \ - fi + mkdir -p $(PREFIX)/man/man8 install -m 0644 snowbox.8 $(PREFIX)/man/man8 - if [ ! -d "/etc/snowbox" ]; then \ - mkdir -p /etc/snowbox; \ - install -m 0600 config /etc/snowbox; \ - install -m 0600 user.auth.example /etc/snowbox; \ - fi + mkdir -p $(DESTDIR)/etc/snowbox + install -m 0600 config $(DESTDIR)/etc/snowbox + install -m 0600 user.auth.example $(DESTDIR)/etc/snowbox dist: mkdir $(DISTDIR)