hirc

IRC client
Log | Files | Refs

commit 9ca505e078fe4278088222615b163064a1e9aa70
parent 0f13bbd4232cb53aaccc779ab1c61139e8f73cf0
Author: hhvn <dev@hhvn.uk>
Date:   Wed, 20 Apr 2022 15:05:26 +0100

clean & uninstall targets for misc/ makefile

Diffstat:
MMakefile | 7+++++--
Mmisc/Makefile | 13++++++++++++-
2 files changed, 17 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile @@ -71,6 +71,9 @@ misc-uninstall: BINDIR="$(BINDIR)" \ MANDIR="$(MANDIR)" +misc-clean: + cd misc/ && make clean + install: all mkdir -p $(BINDIR) $(MANDIR)/man1 install -m0755 $(BIN) $(BINDIR)/$(BIN) @@ -82,10 +85,10 @@ uninstall: -rm -f $(BINDIR)/$(BIN) -rm -f $(MANDIR)/man1/$(MAN) -clean: +clean: misc-clean -rm -f $(OBJ) $(MAN) $(BIN) .c.o: $(CC) $(CFLAGS) -c $< -o $@ -.PHONY: all misc clean install uninstall misc misc-install misc-uninstall +.PHONY: all misc clean install uninstall misc misc-install misc-uninstall misc-clean diff --git a/misc/Makefile b/misc/Makefile @@ -34,7 +34,18 @@ install: > $(MANDIR)/man1/$$f; \ done +uninstall: + for f in $(BINS); do \ + rm -f $(BINDIR)/$$f; \ + done + for f in $(MANS); do \ + rm -f $(MANDIR)/man1/$$f; \ + done + +clean: + rm -f $(BINS) + .c: cc -o $(<:.c=) $< -.PHONY: install uninstall +.PHONY: install uninstall clean