aboutsummaryrefslogtreecommitdiff
path: root/man/Makefile
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2022-10-09 17:57:05 -0400
committerB. Stack <bgstack15@gmail.com>2022-10-09 17:57:05 -0400
commita7738f4dc72c9445623cd6f5348d7a80d4e52690 (patch)
treeb336daf9b226783c39e6e985410cecf46484de3d /man/Makefile
downloadfbxkb-a7738f4dc72c9445623cd6f5348d7a80d4e52690.tar.gz
fbxkb-a7738f4dc72c9445623cd6f5348d7a80d4e52690.tar.bz2
fbxkb-a7738f4dc72c9445623cd6f5348d7a80d4e52690.zip
initial commit, straight from apt-get source
Diffstat (limited to 'man/Makefile')
-rw-r--r--man/Makefile27
1 files changed, 27 insertions, 0 deletions
diff --git a/man/Makefile b/man/Makefile
new file mode 100644
index 0000000..2f8d321
--- /dev/null
+++ b/man/Makefile
@@ -0,0 +1,27 @@
+# Part 0
+# load common stuff
+TOPDIR = ..
+include $(TOPDIR)/Makefile.common
+
+# backslashify slashes to avoid problems with sed
+BPREFIX := $(subst /,\/,$(PREFIX))
+
+SRC = fbxkb.1
+TARGET = fbxkb.1.gz
+
+all: $(TARGET)
+$(TARGET): $(SRC)
+ sed 's/PREFIX/$(BPREFIX)/g' < $(SRC) | gzip - > $@
+
+
+
+clean:
+ $(RM) $(TARGET) *~
+
+
+install: all
+ install -d $(PREFIX)/share/man/man1
+ install -m 644 $(TARGET) $(PREFIX)/share/man/man1
+
+uninstall:
+ rm -f $(PREFIX)/share/man/man1/$(TARGET)
bgstack15