diff options
| author | Zach DeCook <zachdecook@librem.one> | 2023-10-21 10:07:50 -0400 |
|---|---|---|
| committer | Zach DeCook <zachdecook@librem.one> | 2023-10-21 10:07:50 -0400 |
| commit | 5b441f86e98edbef86c6bf33785ba1555e9d4756 (patch) | |
| tree | 985ea04f682fa1f70d444650a8330427852d8066 | |
| parent | 0bb685ea05f554a07fbc98f861eef6dc4f79eb31 (diff) | |
| download | swipeGuess-5b441f86e98edbef86c6bf33785ba1555e9d4756.tar.gz | |
Makefile: Create this
| -rw-r--r-- | .gitignore | 4 | ||||
| -rw-r--r-- | Makefile | 23 |
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" |
