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

1.13    ! kstailey    1: #      $OpenBSD: Makefile.bsd-wrapper,v 1.12 1997/07/29 03:16:29 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.3       etheisen   10: LIBS=          -ltermcap
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.13    ! kstailey   46: .ifdef GLOBAL_AUTOCONF_CACHE
1.12      kstailey   47: config: .FORCE
                     48:        /bin/sh ${.CURDIR}/configure --prefix=${PREFIX} \
1.13    ! kstailey   49:                --cache-file=${GLOBAL_AUTOCONF_CACHE}
1.12      kstailey   50:
                     51: config.status:
                     52:        /bin/sh ${.CURDIR}/configure --prefix=${PREFIX} \
1.13    ! kstailey   53:                --cache-file=${GLOBAL_AUTOCONF_CACHE}
1.12      kstailey   54: .else
1.1       etheisen   55: config: .FORCE
                     56:        -rm -f config.cache
1.8       niklas     57:        /bin/sh ${.CURDIR}/configure --prefix=${PREFIX}
1.1       etheisen   58:
                     59: config.status:
1.8       niklas     60:        /bin/sh ${.CURDIR}/configure --prefix=${PREFIX}
1.12      kstailey   61: .endif
                     62:
1.1       etheisen   63:
                     64: gnu_build:
1.8       niklas     65:        ${MAKE} ${WCC} ${WCFLAGS} ${WLDFLAGS} LIBS=${LIBS} datadir=${DATADIR} \
                     66:                LESS_HLP=${LESS_HLP}
1.11      kstailey   67:
                     68: .ifdef NOMAN
                     69: maninstall:
                     70:        @echo NOMAN is set
                     71: .endif
1.1       etheisen   72:
                     73: install: gnu_install maninstall _SUBDIRUSE
                     74: .if defined(LINKS) && !empty(LINKS)
                     75:        @set ${LINKS}; \
                     76:        while test $$# -ge 2; do \
                     77:                l=${DESTDIR}$$1; \
                     78:                shift; \
                     79:                t=${DESTDIR}$$1; \
                     80:                shift; \
                     81:                echo $$t -\> $$l; \
                     82:                rm -f $$t; \
                     83:                ln $$l $$t; \
                     84:        done; true
                     85: .endif
                     86:
                     87: gnu_install:
1.8       niklas     88:        ${MAKE} ${WCC} ${WCFLAGS} ${WLDFLAGS} LIBS=${LIBS} \
                     89:                LESS_HLP=${LESS_HLP} bindir=${DESTDIR}${BINDIR} \
                     90:                datadir=${DESTDIR}${PREFIX}/share/misc \
1.9       millert    91:                INSTALL_PROGRAM="${INSTALL} ${INSTALL_COPY} ${INSTALL_STRIP} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE}" \
                     92:                INSTALL_DATA="${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m 444" \
1.1       etheisen   93:                INSTALL_MAN= INSTALLDIRS= install
                     94:
                     95: clean cleandir:
1.8       niklas     96:        rm -f ${CLEANFILES}
                     97:        -@if [ -e Makefile ]; then ${MAKE} distclean; fi
1.1       etheisen   98:
                     99: #
                    100: # Fix less manpage suffix
                    101: #
                    102: .SUFFIXES: .nro .1 .2 .3 .4 .5 .6 .7 .8 .9
                    103:
                    104: .nro.1 .nro.2 .nro.3 .nro.4 .nro.5 .nro.6 .nro.7 .nro.8 .nro.9:
1.8       niklas    105:        -@ln -sf ${.IMPSRC} ${.TARGET}
1.1       etheisen  106:
                    107: depend:
                    108:        # Nothing here so far...
                    109:
                    110: lint:
                    111:        # Nothing here so far...
                    112:
                    113: tags:
                    114:        # Nothing here so far...
                    115:
                    116: .include <bsd.obj.mk>
                    117: .include <bsd.subdir.mk>
1.10      kstailey  118: .if !defined(NOMAN)
1.1       etheisen  119: .include <bsd.man.mk>
1.10      kstailey  120: .endif