aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-09-16 16:23:23 +0200
committerMattias Andrée <maandree@kth.se>2021-09-16 16:23:23 +0200
commit0ae720729039b317276c5c8083a5864d8f99a6cb (patch)
treec307e2295d76cf70e6927db5254f0a0c26ba8bec /Makefile
parentmisc + change license + remove info manual (diff)
downloadcrt-calibrator-0ae720729039b317276c5c8083a5864d8f99a6cb.tar.gz
crt-calibrator-0ae720729039b317276c5c8083a5864d8f99a6cb.tar.bz2
crt-calibrator-0ae720729039b317276c5c8083a5864d8f99a6cb.tar.xz
Improve makefile, fix uninstall rule, and fix style erros1.3.3
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 5 insertions, 4 deletions
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