[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.20

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