]> git.scottworley.com Git - keystroke-timestamps/commitdiff
Makefile v1.0.0
authorScott Worley <scottworley@scottworley.com>
Thu, 8 Oct 2020 20:55:53 +0000 (13:55 -0700)
committerScott Worley <scottworley@scottworley.com>
Thu, 8 Oct 2020 21:22:53 +0000 (14:22 -0700)
Makefile [new file with mode: 0644]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..58b87c5
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,12 @@
+prefix = /usr/local
+bindir = $(prefix)/bin
+INSTALL = install
+
+keystroke-timestamps:
+
+%: %.c
+       $(CC) -Wall -Wextra -pedantic -o $@ $^
+
+install: keystroke-timestamps
+       $(INSTALL) -d $(DESTDIR)$(bindir)
+       $(INSTALL) -m 755 $^ $(DESTDIR)$(bindir)