From 5b441f86e98edbef86c6bf33785ba1555e9d4756 Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Sat, 21 Oct 2023 10:07:50 -0400 Subject: Makefile: Create this --- .gitignore | 4 ++++ Makefile | 23 +++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 .gitignore create mode 100644 Makefile 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" -- cgit 1.4.1