Makefile (972B)
- # SPDX-FileCopyrightText: 2017-2022 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
- # SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
- include config.mk
- include ../config.mk
- include ../Makefile.common
- .PHONY: lint
- lint:
- $(MANDOC) -Tlint -Wunsupp,error,warning $(MAN1)
- lolcat: lolcat.c Makefile
- rm -f ${<:=.gcov} ${@:=.gcda} ${@:=.gcno}
- $(CC) -std=c99 $(CFLAGS) -o $@ $< -lm $(LDFLAGS)
- xcd: xcd.c Makefile
- rm -f ${<:=.gcov} ${@:=.gcda} ${@:=.gcno}
- $(CC) -std=c99 $(CFLAGS) -o $@ $< -lm $(LDFLAGS)
- humanize: humanize.c Makefile
- rm -f ${<:=.gcov} ${@:=.gcda} ${@:=.gcno}
- $(CC) -std=c99 $(CFLAGS) $(LIBBSD_CFLAGS) -o $@ $< $(LIBBSD_LIBS) $(LDFLAGS)
- strings: strings.c Makefile
- rm -f ${<:=.gcov} ${@:=.gcda} ${@:=.gcno}
- $(CC) -std=c99 $(CFLAGS) $(LIBBSD_CFLAGS) -o $@ $< $(LIBBSD_LIBS) $(LDFLAGS)
- install:
- mkdir -p ${DESTDIR}${BINDIR}/
- cp -p ${EXE} ${DESTDIR}${BINDIR}/
- mkdir -p ${DESTDIR}${MANDIR}/man1
- cp -p ${MAN1} ${DESTDIR}${MANDIR}/man1