Makefile added

master
Sam Hunter 1 year ago
parent dcf8f1769d
commit 53a410cad2

@ -0,0 +1,25 @@
BINARY := edlog++
PREFIX := /usr/local
EXEC_PREFIX := ${PREFIX}
BINDIR := ${EXEC_PREFIX}/bin
DATAROOTDIR := ${PREFIX}/share
MANDIR := ${DATAROOTDIR}/man
MAN1DIR := ${MANDIR}/man1
.PHONY: install
install: install-bin install-man clean
.PHONY: install-bin
install-bin:
install -d ${DESTDIR}${BINDIR}
install -m 0755 ./${BINARY} ${DESTDIR}${BINDIR}
.PHONY: install-man
install-man: ${BINARY}.1
gzip -k ./${BINARY}.1
install -d ${DESTDIR}${MAN1DIR}
install -m 0644 ./${BINARY}.1.gz ${DESTDIR}${MAN1DIR}
.PHONY: clean
clean:
rm -f ./${BINARY}.1.gz 2> /dev/null
Loading…
Cancel
Save