diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2003-04-13 18:26:27 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2003-04-13 18:26:27 +0000 |
commit | 5569f8a6b6c831077f77d24e2c23d2e2d41fb95f (patch) | |
tree | b79fe763d81906631382fbdc80f3b42a44b6c668 /usr.bin/less/Makefile.bsd-wrapper | |
parent | 6b9d6b99a4fdda2ee6d9a30dec452d8202fb2017 (diff) |
Merge in less-381 w/ local changes and remove obsolete files.
Diffstat (limited to 'usr.bin/less/Makefile.bsd-wrapper')
-rw-r--r-- | usr.bin/less/Makefile.bsd-wrapper | 30 |
1 files changed, 14 insertions, 16 deletions
diff --git a/usr.bin/less/Makefile.bsd-wrapper b/usr.bin/less/Makefile.bsd-wrapper index b4caf55c921..d79ba865396 100644 --- a/usr.bin/less/Makefile.bsd-wrapper +++ b/usr.bin/less/Makefile.bsd-wrapper @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.bsd-wrapper,v 1.18 1999/02/03 23:36:45 millert Exp $ +# $OpenBSD: Makefile.bsd-wrapper,v 1.19 2003/04/13 18:26:25 millert Exp $ # # less config @@ -6,7 +6,6 @@ PREFIX= /usr BINDIR= ${PREFIX}/bin DATADIR= ${PREFIX}/share/misc -LESS_HLP= more.help LIBS= -lcurses LINKS= ${BINDIR}/less ${BINDIR}/more ${BINDIR}/less ${BINDIR}/page MAN= less.1 lesskey.1 @@ -16,9 +15,7 @@ CLEANFILES= config.cache config.log $(MAN) # # Wrapped flags # -WCC= CC="${CC}" -WCFLAGS= CFLAGS="${CFLAGS} ${COPTS}" -WLDFLAGS= LDFLAGS="${LDSTATIC}" +XCFLAGS= CC="${CC}" CFLAGS="${CFLAGS} ${COPTS}" LDFLAGS="${LDFLAGS} ${LDSTATIC}" all: config.status gnu_build @@ -38,8 +35,8 @@ OBJS= main.o screen.o brac.o ch.o charset.o cmdbuf.o \ tags.o ttyin.o version.o .SUFFIXES: .o .c .c.o: config.status - @$(MAKE) ${WCC} ${WCFLAGS} ${WLDFLAGS} LIBS=${LIBS} \ - datadir=${DATADIR} LESS_HLP=${LESS_HLP} ${.TARGET} + @$(MAKE) ${XCFLAGS} LIBS=${LIBS} \ + datadir=${DATADIR} ${.TARGET} .FORCE: .IGNORE @@ -48,25 +45,26 @@ OBJS= main.o screen.o brac.o ch.o charset.o cmdbuf.o \ .ifdef GLOBAL_AUTOCONF_CACHE CF= --cache-file=${GLOBAL_AUTOCONF_CACHE} .else -CF= +CF= --cache-file=config.cache .endif config: .FORCE .ifndef GLOBAL_AUTOCONF_CACHE -rm -f config.cache .endif - PATH="/bin:/usr/bin:/sbin:/usr/sbin" \ + ${XCFLAGS} PATH="/bin:/usr/bin:/sbin:/usr/sbin" \ INSTALL_PROGRAM="${INSTALL} ${INSTALL_COPY} ${INSTALL_STRIP}" \ - /bin/sh ${.CURDIR}/configure --prefix=/usr ${CF} + TERMLIBS=-lcurses /bin/sh ${.CURDIR}/configure \ + --prefix=/usr --mandir=/usr/share/man --sysconfdir=/etc ${CF} config.status: - PATH="/bin:/usr/bin:/sbin:/usr/sbin" \ + ${XCFLAGS} PATH="/bin:/usr/bin:/sbin:/usr/sbin" \ INSTALL_PROGRAM="${INSTALL} ${INSTALL_COPY} ${INSTALL_STRIP}" \ - /bin/sh ${.CURDIR}/configure --prefix=/usr ${CF} + TERMLIBS=-lcurses /bin/sh ${.CURDIR}/configure \ + --prefix=/usr --mandir=/usr/share/man --sysconfdir=/etc ${CF} gnu_build: - ${MAKE} ${WCC} ${WCFLAGS} ${WLDFLAGS} LIBS=${LIBS} datadir=${DATADIR} \ - LESS_HLP=${LESS_HLP} + ${MAKE} ${XCFLAGS} LIBS=${LIBS} datadir=${DATADIR} .ifdef NOMAN maninstall: @@ -88,8 +86,8 @@ install: gnu_install maninstall _SUBDIRUSE .endif gnu_install: - ${MAKE} ${WCC} ${WCFLAGS} ${WLDFLAGS} LIBS=${LIBS} \ - LESS_HLP=${LESS_HLP} bindir=${DESTDIR}${BINDIR} \ + ${MAKE} ${XCFLAGS} LIBS=${LIBS} \ + bindir=${DESTDIR}${BINDIR} \ datadir=${DESTDIR}${PREFIX}/share/misc \ INSTALL_PROGRAM="${INSTALL} ${INSTALL_COPY} ${INSTALL_STRIP} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE}" \ INSTALL_DATA="${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m 444" \ |