[BACK]Return to Makefile CVS log [TXT][DIR] Up to [local] / ports

Annotation of ports/Makefile, Revision 1.25

1.25    ! espie       1: # $OpenBSD: Makefile,v 1.24 2000/04/18 13:40:27 espie Exp $
1.1       niklas      2: # $FreeBSD: Makefile,v 1.36 1997/10/04 15:54:31 jkh Exp $
                      3: #
                      4:
1.23      espie       5:
                      6: .if defined(key) || defined(category) || defined(author)
                      7:
                      8: # set up subdirs from the index, assume it's up-to-date
                      9: _CMD=perl ${.CURDIR}/infrastructure/build/index-retrieve index='${.CURDIR}/INDEX'
                     10: .  if defined(key)
                     11: _CMD+=key='${key}'
                     12: .  endif
                     13: .  if defined(category)
                     14: _CMD+=category='${category}'
                     15: .  endif
1.24      espie      16: .  if defined(maintainer)
                     17: _CMD+=maintainer='${maintainer}'
1.23      espie      18: .  endif
                     19: SUBDIR != ${_CMD}
                     20: .else
1.1       niklas     21: SUBDIR += archivers
1.2       angelos    22: SUBDIR += astro
1.3       niklas     23: SUBDIR += audio
1.1       niklas     24: SUBDIR += benchmarks
1.11      marc       25: SUBDIR += cad
1.1       niklas     26: SUBDIR += chinese
                     27: SUBDIR += comms
1.9       angelos    28: SUBDIR += converters
1.1       niklas     29: SUBDIR += databases
                     30: SUBDIR += devel
                     31: SUBDIR += editors
                     32: SUBDIR += emulators
                     33: SUBDIR += games
                     34: #SUBDIR += german
                     35: SUBDIR += graphics
1.13      marc       36: SUBDIR += japanese
1.1       niklas     37: #SUBDIR += korean
1.6       niklas     38: SUBDIR += lang
1.1       niklas     39: SUBDIR += mail
1.10      angelos    40: SUBDIR += math
1.14      marc       41: SUBDIR += mbone
1.1       niklas     42: SUBDIR += misc
                     43: SUBDIR += net
                     44: SUBDIR += news
1.4       niklas     45: SUBDIR += plan9
1.7       angelos    46: SUBDIR += print
1.12      form       47: SUBDIR += russian
1.1       niklas     48: SUBDIR += security
                     49: SUBDIR += shells
                     50: SUBDIR += sysutils
                     51: SUBDIR += textproc
                     52: #SUBDIR += vietnamese
                     53: SUBDIR += www
1.5       niklas     54: SUBDIR += x11
1.23      espie      55: .endif
1.1       niklas     56:
1.8       niklas     57: PORTSTOP?=     yes
1.1       niklas     58:
                     59: .include <bsd.port.subdir.mk>
                     60:
                     61: index:
                     62:        @rm -f ${.CURDIR}/INDEX
                     63:        @make ${.CURDIR}/INDEX
                     64:
                     65: ${.CURDIR}/INDEX:
1.16      espie      66:        @echo "Generating INDEX..."
                     67:        @make describe ECHO_MSG="echo 1>&2" > ${.CURDIR}/INDEX
                     68:        @echo "Done."
1.1       niklas     69:
                     70: print-index:   ${.CURDIR}/INDEX
                     71:        @awk -F\| '{ printf("Port:\t%s\nPath:\t%s\nInfo:\t%s\nMaint:\t%s\nIndex:\t%s\nB-deps:\t%s\nR-deps:\t%s\n\n", $$1, $$2, $$4, $$6, $$7, $$8, $$9); }' < ${.CURDIR}/INDEX
1.17      turan      72:
                     73: print-licenses: ${.CURDIR}/INDEX
1.20      turan      74:        @printf "Port                                    PC PF DC DF Maint\n"
                     75:        @awk -F\| '{printf("%-40.39s%-3.2s%-3.2s%-3.2s%-3.2s%-25.25s\n",$$2,$$11,$$12,$$13,$$14,$$6);}' < ${.CURDIR}/INDEX
1.1       niklas     76:
                     77: search:        ${.CURDIR}/INDEX
                     78: .if !defined(key)
                     79:        @echo "The search target requires a keyword parameter,"
                     80:        @echo "e.g.: \"make search key=somekeyword\""
                     81: .else
1.15      marc       82:        @grep -i ${key} ${.CURDIR}/INDEX | awk -F\| '{ printf("Port:\t%s\nPath:\t%s\nInfo:\t%s\nMaint:\t%s\nIndex:\t%s\nB-deps:\t%s\nR-deps:\t%s\nArchs:\t%s\n\n", $$1, $$2, $$4, $$6, $$7, $$8, $$9, $$10); }'
1.1       niklas     83: .endif
1.21      espie      84:
                     85:
                     86: MIRROR_MK?= ${.CURDIR}/distfiles/Makefile
                     87:
                     88: mirror-maker:
                     89:        @mkdir -p ${MIRROR_MK:H}
1.25    ! espie      90: # Indirection needed for broken OSes that don't grok this exec
        !            91:        @echo "EXEC=exec" >${MIRROR_MK}
        !            92:        @echo "default:: ftp cdrom" >>${MIRROR_MK}
1.21      espie      93:        @echo ".PHONY: default all ftp cdrom" >>${MIRROR_MK}
                     94:        @make fetch-makefile \
                     95:                ECHO_MSG='echo >&2' \
                     96:                FULL_PACKAGE_NAME=Yes >>${MIRROR_MK}
1.22      espie      97:
                     98: DISTFILES_DB?=${.CURDIR}/infrastructure/db/locate.database
                     99:
                    100: distfiles-update-locatedb:
                    101:        @PORTSDIR=${.CURDIR} /bin/sh ${.CURDIR}/infrastructure/fetch/distfiles-update-locatedb ${DISTFILES_DB}
                    102:
                    103: .PHONY: mirror-maker index search distfiles-update-locatedb \
                    104:        print-licenses print-index