~sircmpwn/scdoc

c7cb8bec38abe598a01667dcb7a009204d5fa12d — Connor Kuehl a month ago 76953aa master
Add uninstall target
2 files changed, 11 insertions(+), 1 deletions(-)

M Makefile
M README.md
M Makefile => Makefile +7 -1
@@ 50,7 50,13 @@ install: all
	install -m644 scdoc.5 $(DESTDIR)/$(MANDIR)/man5/scdoc.5
	install -m644 scdoc.pc $(DESTDIR)/$(PCDIR)/scdoc.pc

uninstall:
	rm -f $(DESTDIR)/$(BINDIR)/scdoc
	rm -f $(DESTDIR)/$(MANDIR)/man1/scdoc.1
	rm -f $(DESTDIR)/$(MANDIR)/man5/scdoc.5
	rm -f $(DESTDIR)/$(PCDIR)/scdoc.pc

check: scdoc scdoc.1 scdoc.5
	@find test -perm -111 -exec '{}' \;

.PHONY: all clean install check
.PHONY: all clean install uninstall check

M README.md => README.md +4 -0
@@ 12,6 12,10 @@ You can pass PREFIX or DESTDIR to make if you'd like:
    make PREFIX=/usr
    sudo make PREFIX=/usr install

Uninstallation is similar:

    sudo make uninstall

## Usage

See scdoc(1)