summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArmaan Bhojwani <me@armaanb.net>2021-01-24 13:38:30 -0500
committerArmaan Bhojwani <me@armaanb.net>2021-01-24 13:38:30 -0500
commita2c0f2555d239ca645957821205f10944bb9c4c8 (patch)
tree9b6ca62c013d9694e33a958dfefd876833e43fbd
parent98c18417f5baa4052a1d4115532544de1ba86cdd (diff)
downloadphrases-a2c0f2555d239ca645957821205f10944bb9c4c8.tar.gz
Move mkdir steps of Makefile into their own target
-rw-r--r--Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index f2be9a7..b263f19 100644
--- a/Makefile
+++ b/Makefile
@@ -1,16 +1,18 @@
.DEFAULT_GOAL := install
-install:
+prep:
mkdir -p /usr/local/bin
mkdir -p /usr/local/man/man1
+
+install:
+ make prep
mkdir -p /usr/local/share/phrases/
cp phrases.py /usr/local/bin/phrases
cp phrases.db /usr/local/share/phrases/
cp man/phrases.1 /usr/local/man/man1/
install-extract:
- mkdir -p /usr/local/bin
- mkdir -p /usr/local/man/man1
+ make prep
cp extract.py /usr/local/bin/phrases-extract
cp man/phrases-extract.1 /usr/local/man/man1/