Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Add DESTDIR make parameter #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ ifeq ($(PC_LIBS),)
endif
LIBS+=$(PC_LIBS)

BINDIR=${prefix}/bin
MANDIR=${prefix}/share/man
PPPDIR=/etc/ppp/peers
BINDIR=$(DESTDIR)/${prefix}/bin
MANDIR=$(DESTDIR)/${prefix}/share/man
PPPDIR=$(DESTDIR)/etc/ppp/peers

include wvrules.mk

Expand All @@ -46,10 +46,10 @@ install-bin: all
cp ppp.provider-pipe ${PPPDIR}/wvdial-pipe

install-man:
[ -d ${MANDIR}/man1 ] || install -d ${MANDIR}/man1
[ -d ${MANDIR}/man5 ] || install -d ${MANDIR}/man5
install -m 0644 wvdial.1 wvdialconf.1 ${MANDIR}/man1
install -m 0644 wvdial.conf.5 ${MANDIR}/man5
[ -d $(DESTDIR)/${MANDIR}/man1 ] || install -d $(DESTDIR)/${MANDIR}/man1
[ -d $(DESTDIR)/${MANDIR}/man5 ] || install -d $(DESTDIR)/${MANDIR}/man5
install -m 0644 wvdial.1 wvdialconf.1 $(DESTDIR)/${MANDIR}/man1
install -m 0644 wvdial.conf.5 $(DESTDIR)/${MANDIR}/man5

install: install-bin install-man

Expand Down