Makefile (491B)
- # SPDX-FileCopyrightText: 2017 Haelwenn (lanodan) Monnier <contact+utils-openpt@hacktivis.me>
- # SPDX-License-Identifier: MIT
- PREFIX ?= /usr/local
- BINDIR ?= ${PREFIX}/bin
- MANDIR ?= ${PREFIX}/share/man
- openpt: openpt.c
- ${CC} -std=c99 ${CFLAGS} -o $@ $< ${LDFLAGS}
- .PHONY: clean
- clean:
- rm openpt
- .PHONY: install
- install: openpt
- mkdir -p ${DESTDIR}${BINDIR}/
- cp -p openpt ${DESTDIR}/${BINDIR}/openpt
- mkdir -p ${DESTDIR}${MANDIR}/man1/
- cp -p openpt.1 ${DESTDIR}/${MANDIR}/man1/openpt.1