summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authoranastasisg <anastasis@learnworlds.com>2025-02-12 00:44:47 +0200
committeranastasisg <anastasis@learnworlds.com>2025-02-12 00:44:47 +0200
commiteb921aa2931859f55b11f3cc42a7fadd147a58d9 (patch)
treec41a0d9788a138c9272702674aaa998acca181c0 /Makefile
parent60d890c9e9ba5d374c238647561ce23fa23bc431 (diff)
downloadxlnch-eb921aa2931859f55b11f3cc42a7fadd147a58d9.tar.gz
xlnch-eb921aa2931859f55b11f3cc42a7fadd147a58d9.tar.bz2
xlnch-eb921aa2931859f55b11f3cc42a7fadd147a58d9.zip
keysym to ignore layoutHEADmaster
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 172219f..b146099 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,6 @@
TARGET=xlnch
+PREFIX?=/usr/local
+MANUALS=$(PREFIX)/share/man
SRC=*.c
CC=gcc
CFLAGS=-D_GNU_SOURCE -std=c99 -pedantic
@@ -15,6 +17,9 @@ debug: $(SRC)
noasan: $(SRC)
$(CC) $(DBG_FLAGS) $(CFLAGS) -o $(TARGET) $^ $(LIBS)
+docs:
+ scdoc < man/xlnch.1.scd > man/xlnch.1
+
.PHONY: clean
clean:
@@ -22,7 +27,11 @@ clean:
rm -f $(TARGET)
install: $(TARGET)
- @cp -v $(TARGET) /usr/local/bin/$(TARGET)
+ mkdir -p $(PREFIX)/bin $(MANUALS)/man1
+ @cp -v $(TARGET) $(PREFIX)/bin/$(TARGET)
+ @install -v -m644 man/xlnch.1 $(MANUALS)/man1/xlnch.1
+
uninstall:
- @rm -v /usr/local/bin/$(TARGET)
+ @rm -v $(PREFIX)/bin/$(TARGET)
+ @rm -v $(MANUALS)/man1/xlnch.1