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

1.21    ! millert     1: #      $OpenBSD: Makefile.bsd-wrapper,v 1.20 2003/04/14 14:33:57 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
1.21    ! millert    14: CLEANFILES=    config.cache config.log
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:
1.1       etheisen   23: .FORCE: .IGNORE
                     24:
1.16      kstailey   25: .include <bsd.own.mk>
                     26:
1.13      kstailey   27: .ifdef GLOBAL_AUTOCONF_CACHE
1.14      kstailey   28: CF=     --cache-file=${GLOBAL_AUTOCONF_CACHE}
                     29: .else
1.19      millert    30: CF=    --cache-file=config.cache
1.14      kstailey   31: .endif
1.12      kstailey   32:
1.1       etheisen   33: config: .FORCE
1.14      kstailey   34: .ifndef GLOBAL_AUTOCONF_CACHE
1.15      kstailey   35:        -rm -f config.cache
1.14      kstailey   36: .endif
1.19      millert    37:        ${XCFLAGS} PATH="/bin:/usr/bin:/sbin:/usr/sbin" \
1.20      millert    38:                INSTALL_PROGRAM="${INSTALL} ${INSTALL_COPY} ${INSTALL_STRIP}" \
1.19      millert    39:                TERMLIBS=-lcurses /bin/sh ${.CURDIR}/configure \
                     40:                --prefix=/usr --mandir=/usr/share/man --sysconfdir=/etc ${CF}
1.1       etheisen   41:
                     42: config.status:
1.19      millert    43:        ${XCFLAGS} PATH="/bin:/usr/bin:/sbin:/usr/sbin" \
1.20      millert    44:                INSTALL_PROGRAM="${INSTALL} ${INSTALL_COPY} ${INSTALL_STRIP}" \
1.19      millert    45:                TERMLIBS=-lcurses /bin/sh ${.CURDIR}/configure \
                     46:                --prefix=/usr --mandir=/usr/share/man --sysconfdir=/etc ${CF}
1.1       etheisen   47:
                     48: gnu_build:
1.20      millert    49:        ${MAKE} ${XCFLAGS} LIBS=${LIBS} datadir=${DATADIR} LESS_HLP=${LESS_HLP}
1.11      kstailey   50:
                     51: .ifdef NOMAN
                     52: maninstall:
                     53:        @echo NOMAN is set
                     54: .endif
1.1       etheisen   55:
1.20      millert    56: install: gnu_install maninstall afterinstall _SUBDIRUSE
1.1       etheisen   57: .if defined(LINKS) && !empty(LINKS)
                     58:        @set ${LINKS}; \
                     59:        while test $$# -ge 2; do \
                     60:                l=${DESTDIR}$$1; \
                     61:                shift; \
                     62:                t=${DESTDIR}$$1; \
                     63:                shift; \
                     64:                echo $$t -\> $$l; \
                     65:                rm -f $$t; \
                     66:                ln $$l $$t; \
                     67:        done; true
                     68: .endif
                     69:
                     70: gnu_install:
1.19      millert    71:        ${MAKE} ${XCFLAGS} LIBS=${LIBS} \
1.20      millert    72:                LESS_HLP=${LESS_HLP} bindir=${DESTDIR}${BINDIR} \
1.8       niklas     73:                datadir=${DESTDIR}${PREFIX}/share/misc \
1.9       millert    74:                INSTALL_PROGRAM="${INSTALL} ${INSTALL_COPY} ${INSTALL_STRIP} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE}" \
                     75:                INSTALL_DATA="${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m 444" \
1.1       etheisen   76:                INSTALL_MAN= INSTALLDIRS= install
                     77:
                     78: clean cleandir:
1.8       niklas     79:        rm -f ${CLEANFILES}
                     80:        -@if [ -e Makefile ]; then ${MAKE} distclean; fi
1.20      millert    81:
                     82: afterinstall:
                     83:        ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m ${NONBINMODE} \
                     84:                ${.CURDIR}/less.hlp ${DESTDIR}${DATADIR}/${LESS_HLP}
1.1       etheisen   85:
                     86: depend:
                     87:        # Nothing here so far...
                     88:
                     89: lint:
                     90:        # Nothing here so far...
                     91:
                     92: tags:
                     93:        # Nothing here so far...
                     94:
                     95: .include <bsd.obj.mk>
                     96: .include <bsd.subdir.mk>
1.10      kstailey   97: .if !defined(NOMAN)
1.1       etheisen   98: .include <bsd.man.mk>
1.10      kstailey   99: .endif