summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgramanas <anastasis.gramm2@gmail.com>2020-12-26 12:22:57 +0200
committergramanas <anastasis.gramm2@gmail.com>2020-12-26 12:22:57 +0200
commit6432435c8a04109bc701630c95fd031507745180 (patch)
tree6c6b70ad25504a3be544d5241ea7a111f051fdad
parent5b4a10af81c60c6c4787d95f82004094f358459c (diff)
downloadquart-6432435c8a04109bc701630c95fd031507745180.tar.gz
quart-6432435c8a04109bc701630c95fd031507745180.tar.bz2
quart-6432435c8a04109bc701630c95fd031507745180.zip
Add prefix in Makefile
-rw-r--r--Makefile13
-rw-r--r--quart.5.scd2
2 files changed, 11 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index f05117c..6523cb0 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,5 @@
TARGET=quart
+PREFIX?=/usr/local
SRC=*.c
CC=gcc
CFLAGS=-D_GNU_SOURCE -std=c99 -pedantic -lm
@@ -29,8 +30,14 @@ clean:
rm -f $(TARGET)
install: $(TARGET)
- @cp -v $(TARGET) /usr/local/bin/$(TARGET)
- @cp -v qc /usr/local/bin/qc
+ @cp -v $(TARGET) $(PREFIX)/bin/$(TARGET)
+ @cp -v qc $(PREFIX)/bin/qc
+ @install -m644 quart.1 $(PREFIX)/share/man1/quart.1
+ @install -m644 quart.5 $(PREFIX)/share/man5/quart.5
+ @ln -s $(PREFIX)/share/man5/quart.1 $(PREFIX)/share/man5/qc.1
uninstall:
- @rm -v /usr/local/bin/$(TARGET)
+ @rm -v $(PREFIX)/bin/$(TARGET)
+ @rm -v $(PREFIX)/share/man1/quart.1
+ @rm -v $(PREFIX)/share/man5/quart.5
+ @rm -v $(PREFIX)/share/man5/qc.1
diff --git a/quart.5.scd b/quart.5.scd
index 438dfad..aae762d 100644
--- a/quart.5.scd
+++ b/quart.5.scd
@@ -87,4 +87,4 @@ There are two special symbols the _DESCRIPTION_ can contain:
so it can contain a different _flag_ or _repetition_ number.
*-*
- None, the most important thing. 15 minutes of doing nothing. \ No newline at end of file
+ None, blank, empty, the most important thing. 15 minutes of doing nothing. \ No newline at end of file