Simple utility to turn swipes into words -- "plugin" for wvkbd to enable swipe-typing under wayland SXMO.
Makefile: Create this
Zach DeCook 2023-10-21
parent 0bb685e · commit 5b441f8
-rw-r--r--.gitignore4
-rw-r--r--Makefile23
2 files changed, 27 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..2a9e7a7
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+mapScore
+swipeGuess
+swipeGuess.1
+mapScore.1
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..f9ed3b6
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,23 @@
+PREFIX?=/usr/local
+
+all: swipeGuess mapScore docs
+swipeGuess: swipeGuess.c
+ $(CC) swipeGuess.c -o swipeGuess
+mapScore: mapScore.c
+ $(CC) mapScore.c -o mapScore
+docs: swipeGuess.1 mapScore.1
+swipeGuess.1: swipeGuess.1.scd
+ scdoc < swipeGuess.1.scd > swipeGuess.1
+mapScore.1: mapScore.1.scd
+ scdoc < mapScore.1.scd > mapScore.1
+
+install: all
+ install -m755 swipeGuess -t "$(DESTDIR)/$(PREFIX)/bin/"
+ install -m755 mapScore -t "$(DESTDIR)/$(PREFIX)/bin/"
+ install -m644 swipeGuess.1 -t "$(DESTDIR)/$(PREFIX)/share/man/man1/"
+ install -m644 mapScore.1 -t "$(DESTDIR)/$(PREFIX)/share/man/man1/"
+uninstall:
+ rm -f "$(DESTDIR)/$(PREFIX)/bin/swipeGuess"
+ rm -f "$(DESTDIR)/$(PREFIX)/bin/mapScore"
+ rm -f "$(DESTDIR)/$(PREFIX)/share/man/man1/swipeGuess.1"
+ rm -f "$(DESTDIR)/$(PREFIX)/share/man/man1/mapScore.1"