Makefile: support DESTDIR variable in install

This commit is contained in:
Till Maas 2010-07-03 11:12:42 +12:00 committed by Daniel Beer
parent 74a11c1ae0
commit c293d479a3
1 changed files with 4 additions and 4 deletions

View File

@ -36,10 +36,10 @@ clean:
/bin/rm -f mspdebug
install: mspdebug mspdebug.man
mkdir -p $(PREFIX)/bin
mkdir -p $(PREFIX)/share/man/man1
$(INSTALL) -m 0755 -s mspdebug $(PREFIX)/bin/mspdebug
$(INSTALL) -m 0644 mspdebug.man $(PREFIX)/share/man/man1/mspdebug.1
mkdir -p $(DESTDIR)$(PREFIX)/bin
mkdir -p $(DESTDIR)$(PREFIX)/share/man/man1
$(INSTALL) -m 0755 -s mspdebug $(DESTDIR)$(PREFIX)/bin/mspdebug
$(INSTALL) -m 0644 mspdebug.man $(DESTDIR)$(PREFIX)/share/man/man1/mspdebug.1
.SUFFIXES: .c .o