rpass

Strong password generator for humans
git clone git://git.sgregoratto.me/rpass
Log | Files | Refs | README

commit bc3fb18c4df3456512921af2cb369a4c73909daf
parent 39085a45d49602d0e54bbff4ff7f5a6d9dcd4298
Author: Tim Kuijsten <info+git@netsend.nl>
Date:   Fri, 13 Dec 2019 17:18:30 +0100

update makefile

* more idiomatic
* add target to build html version of the man page

Diffstat:
MMakefile | 24+++++++++++++++++-------
1 file changed, 17 insertions(+), 7 deletions(-)

diff --git a/Makefile b/Makefile @@ -1,19 +1,29 @@ -PROG= rpass +PROG= rpass -USRDIR= /usr/local -BINDIR= $(USRDIR)/bin -MANDIR= $(USRDIR)/man +PREFIX = /usr/local +BINDIR = $(PREFIX)/bin +MANDIR = $(PREFIX)/man + +CFLAGS += -Wall -Wextra -pedantic-errors + +INSTALL_BIN = install -m 0555 +INSTALL_MAN = install -m 0444 INSTALL_DIR= install -dm 755 INSTALL_BIN= install -m 555 INSTALL_MAN= install -m 444 rpass: rpass.c - cc -Wall -std=c99 -o rpass rpass.c -lm + ${CC} ${CFLAGS} rpass.c -o $@ -lm + +rpass.1.html: rpass.1 + mandoc -T html -O style=man.css rpass.1 > rpass.1.html + +.PHONY: manhtml clean install +manhtml: rpass.1.html -.PHONY: clean install clean: - rm -f ${OBJS} ${COMPAT} rpass + rm -f rpass rpass.1.html install: ${INSTALL_DIR} ${DESTDIR}${BINDIR}