From 68dd947b82c6508cb72558130759c9eb2480f1eb Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 7 Feb 2021 00:24:39 +0100 Subject: Fork mongoclock and turn into a timer and stopwatch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- Makefile | 33 ++++++++++++++++++--------------- 1 file changed, 18 insertions(+), 15 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index f197990..c27a730 100644 --- a/Makefile +++ b/Makefile @@ -6,15 +6,15 @@ include $(CONFIGFILE) DIGITS =\ mongo_0.h mongo_1.h mongo_2.h mongo_3.h mongo_4.h \ mongo_5.h mongo_6.h mongo_7.h mongo_8.h mongo_9.h \ - mongo_c.h + mongo_c.h mongo_m.h -all: mongoclock +all: mongotimer -mongoclock: mongoclock.o - $(CC) -o $@ $^ $(LDFLAGS) +mongotimer: mongotimer.o + $(CC) -o $@ mongotimer.o $(LDFLAGS) -mongoclock.o: mongoclock.c arg.h $(DIGITS) - $(CC) -c -o $@ mongoclock.c $(CPPFLAGS) $(CFLAGS) +mongotimer.o: mongotimer.c arg.h $(DIGITS) + $(CC) -c -o $@ mongotimer.c $(CPPFLAGS) $(CFLAGS) mongo_0.h: digit.sh ./digit.sh 0 > $@ @@ -49,20 +49,23 @@ mongo_9.h: digit.sh mongo_c.h: digit.sh ./digit.sh c > $@ -install: mongoclock +mongo_m.h: digit.sh + ./digit.sh m > $@ + +install: mongotimer mkdir -p -- "$(DESTDIR)$(PREFIX)/bin" - mkdir -p -- "$(DESTDIR)$(PREFIX)/share/licenses/mongoclock" + mkdir -p -- "$(DESTDIR)$(PREFIX)/share/licenses/mongotimer" mkdir -p -- "$(DESTDIR)$(MANPREFIX)/man1" - cp -- mongoclock "$(DESTDIR)$(PREFIX)/bin/" - cp -- LICENSE "$(DESTDIR)$(PREFIX)/share/licenses/mongoclock/" - cp -- mongoclock.1 "$(DESTDIR)$(MANPREFIX)/man1/" + cp -- mongotimer "$(DESTDIR)$(PREFIX)/bin/" + cp -- LICENSE "$(DESTDIR)$(PREFIX)/share/licenses/mongotimer/" + cp -- mongotimer.1 "$(DESTDIR)$(MANPREFIX)/man1/" uninstall: - -rm -- "$(DESTDIR)$(PREFIX)/bin/mongoclock" - -rm -- "$(DESTDIR)$(MANPREFIX)/man1/mongoclock.1" - -rm -r -- "$(DESTDIR)$(PREFIX)/share/licenses/mongoclock" + -rm -- "$(DESTDIR)$(PREFIX)/bin/mongotimer" + -rm -- "$(DESTDIR)$(MANPREFIX)/man1/mongotimer.1" + -rm -r -- "$(DESTDIR)$(PREFIX)/share/licenses/mongotimer" clean: - -rm -f -- *.o mongoclock mongo_*.h + -rm -f -- *.o mongotimer mongo_*.h .PHONY: all install uninstall clean -- cgit v1.2.3-70-g09d2