logo

utils

~/.local/bin tools and git-hooks git clone https://hacktivis.me/git/utils.git
commit: 5f5c7880779a71bb161872dd9c837a17edaf0ced
parent 949e97c3fbbe22420bb9730857a42b5aa7ed9179
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Mon,  5 Apr 2021 03:46:03 +0200

*bin/Makefile: add install targets

Diffstat:

Mbin/Makefile9+++++++++
Mbin/Makefile.config3++-
Mgen-Makefile.config1+
Msbin/Makefile6++++++
Msbin/Makefile.config1+
5 files changed, 19 insertions(+), 1 deletion(-)

diff --git a/bin/Makefile b/bin/Makefile @@ -5,3 +5,12 @@ include Makefile.config include ../Makefile.common + +BINDIR = $(PREFIX)/bin +MANDIR = $(PREFIX)/share/man + +install: + mkdir -p ${DESTDIR}${BINDIR}/ + cp -p ${EXE} ${DESTDIR}${BINDIR}/ + mkdir -p ${DESTDIR}${MANDIR}/man1 + cp -p ${MAN1} ${DESTDIR}${MANDIR}/man1 diff --git a/bin/Makefile.config b/bin/Makefile.config @@ -1 +1,2 @@ -EXE = args colorpicker date echo lolcat mdate pwd range sizeof xcd xrd +EXE = args date echo lolcat mdate pwd range sizeof xcd +MAN1 = date.1 lolcat.1 diff --git a/gen-Makefile.config b/gen-Makefile.config @@ -1,2 +1,3 @@ #!/bin/sh echo 'EXE = '$(ls -d *.c | sed 's;\b\.c\b;;g') +echo 'MAN1 = '$(ls -d *.1 | sed 's;\b\.c\b;;g') diff --git a/sbin/Makefile b/sbin/Makefile @@ -7,3 +7,9 @@ include Makefile.config include ../Makefile.common BINDIR = $(PREFIX)/sbin + +install: + mkdir -p ${DESTDIR}${BINDIR}/ + cp -p memsys ${DESTDIR}${BINDIR}/ + chown 0:0 ${DESTDIR}${BINDIR}/memsys + chmod 4722 ${DESTDIR}${BINDIR}/memsys diff --git a/sbin/Makefile.config b/sbin/Makefile.config @@ -1 +1,2 @@ EXE = memsys +MAN1 =