install into DESTDIR

and use 'install' throughout (rather than 'mkdir')

Signed-off-by: IOhannes m zmölnig <zmoelnig@umlaeute.mur.at>
master
IOhannes m zmölnig 2015-06-08 09:36:12 +02:00 committed by Richard Cochran
parent 0e1b25176d
commit 572438b85e
1 changed files with 3 additions and 3 deletions

View File

@ -69,9 +69,9 @@ version.o: .version version.sh $(filter-out version.d,$(DEPEND))
force: force:
install: $(PRG) install: $(PRG)
mkdir -p $(sbindir) $(man8dir) install -p -m 755 -d $(DESTDIR)$(sbindir) $(DESTDIR)$(man8dir)
install $(PRG) $(sbindir) install $(PRG) $(DESTDIR)$(sbindir)
install -p -m 644 -t $(man8dir) $(PRG:%=%.8) install -p -m 644 -t $(DESTDIR)$(man8dir) $(PRG:%=%.8)
clean: clean:
rm -f $(OBJECTS) $(DEPEND) rm -f $(OBJECTS) $(DEPEND)