aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-02-07 00:24:39 +0100
committerMattias Andrée <maandree@kth.se>2021-02-07 00:24:39 +0100
commit68dd947b82c6508cb72558130759c9eb2480f1eb (patch)
tree519b32f07c9f46d48849acb88c6687ecb28db12b /Makefile
parentAdd posix time support (diff)
downloadmongotimer-68dd947b82c6508cb72558130759c9eb2480f1eb.tar.gz
mongotimer-68dd947b82c6508cb72558130759c9eb2480f1eb.tar.bz2
mongotimer-68dd947b82c6508cb72558130759c9eb2480f1eb.tar.xz
Fork mongoclock and turn into a timer and stopwatch
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--Makefile33
1 files changed, 18 insertions, 15 deletions
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