aboutsummaryrefslogtreecommitdiff
path: root/gnu/man/apropos/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/man/apropos/Makefile')
-rw-r--r--gnu/man/apropos/Makefile37
1 files changed, 37 insertions, 0 deletions
diff --git a/gnu/man/apropos/Makefile b/gnu/man/apropos/Makefile
new file mode 100644
index 000000000000..6208d5e6ba5e
--- /dev/null
+++ b/gnu/man/apropos/Makefile
@@ -0,0 +1,37 @@
+.if exists(${.CURDIR}/obj)
+MANP= ${.CURDIR}/obj/apropos.1
+TARG= ${.CURDIR}/obj/apropos
+.else
+MANP= ${.CURDIR}/apropos.1
+TARG= ${.CURDIR}/apropos
+.endif
+
+all: ${TARG} ${MANP}
+
+depend rcsfreeze tags all:
+ @echo -n
+
+cleandir: clean
+ cd ${.CURDIR}; rm -rf obj;
+
+clean:
+ @rm -f ${TARG} ${MANP}
+
+${TARG}: ${.CURDIR}/apropos.sh
+ sed -e 's,%libdir%,${libdir},' -e 's,%bindir%,${bindir},' \
+ -e 's,%pager%,${pager},' \
+ ${.CURDIR}/apropos.sh > $@
+
+${MANP}: ${.CURDIR}/apropos.man
+ sed -e 's,%libdir%,${libdir},' -e 's,%bindir%,${bindir},' \
+ -e 's,%pager%,${pager},' -e 's,%troff%,${troff},' \
+ -e 's,%manpath_config_file%,${manpath_config_file},' \
+ ${.CURDIR}/apropos.man > $@
+
+install: ${TARG} maninstall
+ install -c -o bin -g bin -m 555 ${TARG} ${DESTDIR}/usr/bin
+
+maninstall: ${MANP}
+ install -c -o bin -g bin -m 444 ${MANP} ${DESTDIR}/usr/share/man/man1
+
+.include "../Makefile.inc"