logo

cross-unix-documentation

documentation of similarities and (noteworthy) differencies between Unix systems git clone https://hacktivis.me/git/cross-unix-documentation.git

Makefile (493B)


  1. # This file is part of Cross Unix Documentation
  2. # Copyright © 2019-2020 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
  3. # SPDX-License-Identifier: CC-BY-4.0
  4. .POSIX:
  5. PREFIX=/usr/local
  6. MANDIR=${PREFIX}/share/man
  7. .PHONY: all
  8. all:
  9. :
  10. .PHONY: lint
  11. lint:
  12. find ./man*/ -type f -exec man -c -Tlint {} \; | grep -v -f mandoc_lint_ignore | tee mandoc_lint.log
  13. wc -l <mandoc_lint.log | grep -q '^0$$'
  14. .PHONY: install
  15. install:
  16. mkdir -p ${DESTDIR}${MANDIR}/
  17. cp -r man[0-9]x ${DESTDIR}${MANDIR}/