From 0ae720729039b317276c5c8083a5864d8f99a6cb Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 16 Sep 2021 16:23:23 +0200 Subject: Improve makefile, fix uninstall rule, and fix style erros MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- Makefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 0dc11a2..2e70368 100644 --- a/Makefile +++ b/Makefile @@ -12,8 +12,9 @@ OBJ =\ HDR = common.h + all: crt-calibrator -$(OBJ): $(@:.o=.c) $(HDR) +$(OBJ): $(HDR) crt-calibrator: $(OBJ) $(CC) -o $@ $(OBJ) $(LDFLAGS) @@ -28,11 +29,11 @@ install: crt-calibrator cp -- crt-calibrator.1 "$(DESTDIR)$(MANPREFIX)/man1/" uninstall: - -rm -- "$(DESTDIR)$(BINDIR)/crt-calibrator" - -rm -- "$(DESTDIR)$(MAN1DIR)/crt-calibrator.1" + -rm -- "$(DESTDIR)$(PREFIX)/bin/crt-calibrator" + -rm -- "$(DESTDIR)$(MANPREFIX)/man1/crt-calibrator.1" clean: - -rm -rf -- crt-calibrator *.o + -rm -rf -- crt-calibrator *.o *.su .SUFFIXES: .SUFFIXES: .o .c -- cgit v1.2.3-70-g09d2