Skip to content

Commit

Permalink
Makefile: Install man pages
Browse files Browse the repository at this point in the history
  • Loading branch information
ismaell committed Nov 29, 2020
1 parent 32d9001 commit 108eaeb
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,20 @@ all: build
DESTDIR =
prefix = /usr/local
bindir = ${prefix}/bin
.PHONY: install install-bin
install: install-bin
mandir = ${prefix}/share/man
man1dir = ${mandir}/man1

.PHONY: install install-bin install-man
install: install-bin install-man
install-bin: build
install -d ${DESTDIR}${bindir}
install -m555 ${BINS} ${DESTDIR}${bindir}

man1pages = docs/dasm.1
install-man: ${man1pages}
install -d ${DESTDIR}${man1dir}
install -m444 ${man1pages} ${DESTDIR}${man1dir}

# just run all the tests
test: build
@echo "Running tests..."
Expand Down

0 comments on commit 108eaeb

Please sign in to comment.