![]() ![]() | ![]() |
Add install and uninstall rules to Makefile
1: # 2: # $Id: Makefile,v 1.3 2025/04/27 19:49:33 snw Exp $ 3: # plm makefile 4: # 5: # Copyright (C) 2025 Serena Willis 6: # 7: # $Log: Makefile,v $ 8: # Revision 1.3 2025/04/27 19:49:33 snw 9: # Add install and uninstall rules to Makefile 10: # 11: # Revision 1.2 2025/04/27 18:53:36 snw 12: # Add pl man page 13: # 14: # Revision 1.1 2025/04/27 17:14:32 snw 15: # Add some files 16: # 17: # 18: # SPDX-FileCopyrightText: (C) 2025 Serena Willis 19: # SPDX-License-Identifier: AGPL-3.0-or-later 20: # 21: 22: default: 23: @echo "specify install, uninstall, or lint" 24: 25: install: 26: install -o root -g root pl genpl /usr/local/bin/ 27: cp pl.1 /usr/share/man/man1/ 28: gzip /usr/share/man/man1/pl.1 29: mandb -q 30: 31: uninstall: 32: rm -f /usr/local/bin/pl 33: rm -f /usr/local/bin/genpl 34: rm -f /usr/share/man/man1/pl.1.gz 35: mandb -q 36: 37: lint: 38: rm -rf LICENSES 39: mkdir -p LICENSES 40: reuse download --all 41: reuse lint 42: rm -rf LICENSES 43: 44: .PHONY: default install uninstall lint