diff options
| author | cvs2svn <cvs2svn@FreeBSD.org> | 1995-10-21 23:47:44 +0000 |
|---|---|---|
| committer | cvs2svn <cvs2svn@FreeBSD.org> | 1995-10-21 23:47:44 +0000 |
| commit | c95f4bc5fb56d76b4914634e02589343e93c6362 (patch) | |
| tree | 540a7f49494f77ad8bd171c19683bc8759629293 /gnu | |
| parent | b08409b051b736e643fc491286c70cd852fd2215 (diff) | |
Notes
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/usr.bin/man/Makefile.shprog | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/gnu/usr.bin/man/Makefile.shprog b/gnu/usr.bin/man/Makefile.shprog new file mode 100644 index 000000000000..665a194917ff --- /dev/null +++ b/gnu/usr.bin/man/Makefile.shprog @@ -0,0 +1,30 @@ +# $Id$ + +# This may become bsd.shprog.mk. The general version would have to handle: +# - arbitrary sed substitutions. +# - programs without man pages. +# - programs with man pages in sections other than section 1. + +MAN1= ${SHPROG:S/$/.1/g} + +CLEANFILES+= ${SHPROG} ${MAN1} + +all: ${SHPROG} + +.sh: + sed -e 's,%libdir%,${libdir},' -e 's,%bindir%,${bindir},' \ + -e 's,%pager%,${pager},' \ + ${.ALLSRC} > ${.TARGET} + +.SUFFIXES: .man .1 +.man.1: + 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},' \ + ${.ALLSRC} > ${.TARGET} + +beforeinstall: + ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ + ${SHPROG} ${DESTDIR}${BINDIR} + +.include <bsd.prog.mk> |
