logo

pts

Fake a pseudo-terminal for testsuites
commit: d06048488804c8dfb09d0d66c566f69a0f3c5dbf
parent b961ecfc9eadb5ecb3b4e4bed1ebbfcb1f6f1f2f
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sun,  2 Jun 2024 07:05:28 +0200

Makefile: Add install target

Diffstat:

MMakefile8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile @@ -1,9 +1,17 @@ # SPDX-FileCopyrightText: 2017 Haelwenn (lanodan) Monnier <contact+utils-pts@hacktivis.me> # SPDX-License-Identifier: MPL-2.0 +PREFIX ?= /usr/local +BINDIR ?= ${PREFIX}/bin + pts: pts.c ${CC} -std=c99 ${CFLAGS} -o $@ $< ${LDFLAGS} .PHONY: clean clean: rm pts + +.PHONY: install +install: pts + mkdir -p ${BINDIR}/ + cp -p pts ${DESTDIR}/${BINDIR}/pts