aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-09-16 18:32:09 +0200
committerMattias Andrée <maandree@kth.se>2021-09-16 18:32:09 +0200
commit45b62beddc014daf0ad5da0320155598b641a7ea (patch)
tree90f41c2999fd5e68de378c4be27eb00bbd8c81cd /Makefile
parentExit when user presses q (diff)
downloadmongotimer-1.1.4.tar.gz
mongotimer-1.1.4.tar.bz2
mongotimer-1.1.4.tar.xz
Improve makefile + m whitespace fix1.1.4
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 3 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index c27a730..08f6890 100644
--- a/Makefile
+++ b/Makefile
@@ -8,13 +8,14 @@ DIGITS =\
mongo_5.h mongo_6.h mongo_7.h mongo_8.h mongo_9.h \
mongo_c.h mongo_m.h
+
all: mongotimer
mongotimer: mongotimer.o
$(CC) -o $@ mongotimer.o $(LDFLAGS)
mongotimer.o: mongotimer.c arg.h $(DIGITS)
- $(CC) -c -o $@ mongotimer.c $(CPPFLAGS) $(CFLAGS)
+ $(CC) -c -o $@ mongotimer.c $(CFLAGS) $(CPPFLAGS)
mongo_0.h: digit.sh
./digit.sh 0 > $@
@@ -54,18 +55,15 @@ mongo_m.h: digit.sh
install: mongotimer
mkdir -p -- "$(DESTDIR)$(PREFIX)/bin"
- mkdir -p -- "$(DESTDIR)$(PREFIX)/share/licenses/mongotimer"
mkdir -p -- "$(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/mongotimer"
-rm -- "$(DESTDIR)$(MANPREFIX)/man1/mongotimer.1"
- -rm -r -- "$(DESTDIR)$(PREFIX)/share/licenses/mongotimer"
clean:
- -rm -f -- *.o mongotimer mongo_*.h
+ -rm -f -- *.o *.su mongotimer mongo_*.h
.PHONY: all install uninstall clean