hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index c39a8e0..609a125 100644
--- a/Makefile
+++ b/Makefile
@@ -35,7 +35,9 @@ TARGET := jafm
SRC := jafm.c
PREFIX ?= /usr/local
+MANPREFIX ?= $(PREFIX)/share/man
BINDIR := $(DESTDIR)$(PREFIX)/bin
+MANDIR := $(DESTDIR)$(MANPREFIX)/man1
all: $(TARGET)
@@ -52,9 +54,12 @@ check:
install: $(TARGET)
install -d $(BINDIR)
install -m 755 $(TARGET) $(BINDIR)/$(TARGET)
+ install -d $(MANDIR)
+ install -m 644 $(TARGET).1 $(MANDIR)/$(TARGET).1
uninstall:
rm -f $(BINDIR)/$(TARGET)
+ rm -f $(MANDIR)/$(TARGET).1
clean:
rm -rf $(TARGET) $(TARGET).dSYM