logo

utils

~/.local/bin tools and git-hooks git clone https://hacktivis.me/git/utils.git

Makefile (972B)


  1. # SPDX-FileCopyrightText: 2017-2022 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
  2. # SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
  3. include config.mk
  4. include ../config.mk
  5. include ../Makefile.common
  6. .PHONY: lint
  7. lint:
  8. $(MANDOC) -Tlint -Wunsupp,error,warning $(MAN1)
  9. lolcat: lolcat.c Makefile
  10. rm -f ${<:=.gcov} ${@:=.gcda} ${@:=.gcno}
  11. $(CC) -std=c99 $(CFLAGS) -o $@ $< -lm $(LDFLAGS)
  12. xcd: xcd.c Makefile
  13. rm -f ${<:=.gcov} ${@:=.gcda} ${@:=.gcno}
  14. $(CC) -std=c99 $(CFLAGS) -o $@ $< -lm $(LDFLAGS)
  15. humanize: humanize.c Makefile
  16. rm -f ${<:=.gcov} ${@:=.gcda} ${@:=.gcno}
  17. $(CC) -std=c99 $(CFLAGS) $(LIBBSD_CFLAGS) -o $@ $< $(LIBBSD_LIBS) $(LDFLAGS)
  18. strings: strings.c Makefile
  19. rm -f ${<:=.gcov} ${@:=.gcda} ${@:=.gcno}
  20. $(CC) -std=c99 $(CFLAGS) $(LIBBSD_CFLAGS) -o $@ $< $(LIBBSD_LIBS) $(LDFLAGS)
  21. install:
  22. mkdir -p ${DESTDIR}${BINDIR}/
  23. cp -p ${EXE} ${DESTDIR}${BINDIR}/
  24. mkdir -p ${DESTDIR}${MANDIR}/man1
  25. cp -p ${MAN1} ${DESTDIR}${MANDIR}/man1