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