aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-08-12 02:20:32 +0200
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-09-27 22:08:23 +0200
commitf7293744cea7b2e3b5980676d86d4a33bfdeb5b8 (patch)
treeb4f2b3be0f13320743ccd3f711ba6fcdf1be1dfd /doc
parent653924ba87a1367194bc25554ba3fae780fd6a2f (diff)
downloadslcl-f7293744cea7b2e3b5980676d86d4a33bfdeb5b8.tar.gz
Makefile: add install target
Diffstat (limited to 'doc')
-rw-r--r--doc/Makefile8
-rw-r--r--doc/man1/Makefile16
2 files changed, 24 insertions, 0 deletions
diff --git a/doc/Makefile b/doc/Makefile
new file mode 100644
index 0000000..84486c5
--- /dev/null
+++ b/doc/Makefile
@@ -0,0 +1,8 @@
+.POSIX:
+
+PREFIX = /usr/local
+
+all:
+
+install: all
+ +cd man1 && $(MAKE) PREFIX=$(PREFIX) install
diff --git a/doc/man1/Makefile b/doc/man1/Makefile
new file mode 100644
index 0000000..d383809
--- /dev/null
+++ b/doc/man1/Makefile
@@ -0,0 +1,16 @@
+.POSIX:
+
+PREFIX = /usr/local
+DST = $(PREFIX)/share/man/man1
+OBJECTS = \
+ $(DST)/slcl.1 \
+ $(DST)/usergen.1
+
+all:
+
+install: $(OBJECTS)
+
+$(DST)/%.1: %.1
+ mkdir -p $(DST)
+ cp $< $@
+ chmod 0644 $@