[BACK]Return to Makefile.bsd-wrapper CVS log [TXT][DIR] Up to [local] / src / usr.bin / less

Annotation of src/usr.bin/less/Makefile.bsd-wrapper, Revision 1.17

1.17    ! millert     1: #      $OpenBSD: Makefile.bsd-wrapper,v 1.16 1997/09/05 07:15:10 kstailey Exp $
1.1       etheisen    2:
                      3: #
                      4: # less config
                      5: #
                      6: PREFIX=                /usr
1.8       niklas      7: BINDIR=                ${PREFIX}/bin
                      8: DATADIR=       ${PREFIX}/share/misc
1.2       etheisen    9: LESS_HLP=      more.help
1.17    ! millert    10: LIBS=          -lcurses
1.5       etheisen   11: LINKS=         ${BINDIR}/less ${BINDIR}/more ${BINDIR}/less ${BINDIR}/page
1.1       etheisen   12: MAN=           less.1 lesskey.1
                     13: MLINKS=                less.1 more.1 less.1 page.1
                     14: CLEANFILES=    config.cache config.log $(MAN)
1.4       etheisen   15:
                     16: #
1.5       etheisen   17: # Wrapped flags
                     18: #
1.8       niklas     19: WCC=           CC="${CC}"
                     20: WCFLAGS=       CFLAGS="${CFLAGS}"
                     21: WLDFLAGS=      LDFLAGS="${LDSTATIC}"
1.5       etheisen   22:
                     23: all: config.status gnu_build
                     24:
                     25: #
1.7       etheisen   26: # XXX - This is needed because crunchgen wasn't
                     27: #       designed to work with wrappers.  The
                     28: #      default sys.mk SUFFIX rules were being
                     29: #      invoked accidentally and crunchgen
                     30: #      couldn't figure out what objects were
                     31: #      needed.
1.4       etheisen   32: #
                     33: OBJS=  main.o screen.o brac.o ch.o charset.o cmdbuf.o \
                     34:        command.o decode.o edit.o filename.o forwback.o \
                     35:        help.o ifile.o input.o jump.o line.o linenum.o \
                     36:        lsystem.o mark.o optfunc.o option.o opttbl.o os.o \
                     37:        output.o position.o prompt.o search.o signal.o \
                     38:        tags.o ttyin.o version.o
1.7       etheisen   39: .SUFFIXES: .o .c
                     40: .c.o: config.status
1.8       niklas     41:        @$(MAKE) ${WCC} ${WCFLAGS} ${WLDFLAGS} LIBS=${LIBS} \
                     42:                 datadir=${DATADIR} LESS_HLP=${LESS_HLP} ${.TARGET}
1.1       etheisen   43:
                     44: .FORCE: .IGNORE
                     45:
1.16      kstailey   46: .include <bsd.own.mk>
                     47:
1.13      kstailey   48: .ifdef GLOBAL_AUTOCONF_CACHE
1.14      kstailey   49: CF=     --cache-file=${GLOBAL_AUTOCONF_CACHE}
                     50: .else
                     51: CF=
                     52: .endif
1.12      kstailey   53:
1.1       etheisen   54: config: .FORCE
1.14      kstailey   55: .ifndef GLOBAL_AUTOCONF_CACHE
1.15      kstailey   56:        -rm -f config.cache
1.14      kstailey   57: .endif
1.17    ! millert    58:        PATH="/bin:/usr/bin:/sbin:/usr/sbin" \
1.15      kstailey   59:        INSTALL_PROGRAM="${INSTALL} ${INSTALL_COPY} ${INSTALL_STRIP}" \
1.16      kstailey   60:                /bin/sh ${.CURDIR}/configure --prefix=/usr ${CF}
1.1       etheisen   61:
                     62: config.status:
1.17    ! millert    63:        PATH="/bin:/usr/bin:/sbin:/usr/sbin" \
1.15      kstailey   64:        INSTALL_PROGRAM="${INSTALL} ${INSTALL_COPY} ${INSTALL_STRIP}" \
1.16      kstailey   65:                /bin/sh ${.CURDIR}/configure --prefix=/usr ${CF}
1.1       etheisen   66:
                     67: gnu_build:
1.8       niklas     68:        ${MAKE} ${WCC} ${WCFLAGS} ${WLDFLAGS} LIBS=${LIBS} datadir=${DATADIR} \
                     69:                LESS_HLP=${LESS_HLP}
1.11      kstailey   70:
                     71: .ifdef NOMAN
                     72: maninstall:
                     73:        @echo NOMAN is set
                     74: .endif
1.1       etheisen   75:
                     76: install: gnu_install maninstall _SUBDIRUSE
                     77: .if defined(LINKS) && !empty(LINKS)
                     78:        @set ${LINKS}; \
                     79:        while test $$# -ge 2; do \
                     80:                l=${DESTDIR}$$1; \
                     81:                shift; \
                     82:                t=${DESTDIR}$$1; \
                     83:                shift; \
                     84:                echo $$t -\> $$l; \
                     85:                rm -f $$t; \
                     86:                ln $$l $$t; \
                     87:        done; true
                     88: .endif
                     89:
                     90: gnu_install:
1.8       niklas     91:        ${MAKE} ${WCC} ${WCFLAGS} ${WLDFLAGS} LIBS=${LIBS} \
                     92:                LESS_HLP=${LESS_HLP} bindir=${DESTDIR}${BINDIR} \
                     93:                datadir=${DESTDIR}${PREFIX}/share/misc \
1.9       millert    94:                INSTALL_PROGRAM="${INSTALL} ${INSTALL_COPY} ${INSTALL_STRIP} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE}" \
                     95:                INSTALL_DATA="${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m 444" \
1.1       etheisen   96:                INSTALL_MAN= INSTALLDIRS= install
                     97:
                     98: clean cleandir:
1.8       niklas     99:        rm -f ${CLEANFILES}
                    100:        -@if [ -e Makefile ]; then ${MAKE} distclean; fi
1.1       etheisen  101:
                    102: #
                    103: # Fix less manpage suffix
                    104: #
                    105: .SUFFIXES: .nro .1 .2 .3 .4 .5 .6 .7 .8 .9
                    106:
                    107: .nro.1 .nro.2 .nro.3 .nro.4 .nro.5 .nro.6 .nro.7 .nro.8 .nro.9:
1.8       niklas    108:        -@ln -sf ${.IMPSRC} ${.TARGET}
1.1       etheisen  109:
                    110: depend:
                    111:        # Nothing here so far...
                    112:
                    113: lint:
                    114:        # Nothing here so far...
                    115:
                    116: tags:
                    117:        # Nothing here so far...
                    118:
                    119: .include <bsd.obj.mk>
                    120: .include <bsd.subdir.mk>
1.10      kstailey  121: .if !defined(NOMAN)
1.1       etheisen  122: .include <bsd.man.mk>
1.10      kstailey  123: .endif