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

Diff for /ports/Makefile between version 1.60 and 1.80

version 1.60, 2008/07/04 15:43:39 version 1.80, 2018/11/06 11:13:44
Line 1 
Line 1 
 # $OpenBSD$  # $OpenBSD$
 # $FreeBSD: Makefile,v 1.36 1997/10/04 15:54:31 jkh Exp $  
 #  
   
   .if !defined(BSD_OWN_MK)
   .  include <bsd.own.mk>
   .endif
   
 PKGPATH =  PKGPATH =
 MIRROR_MK ?= ${.CURDIR}/distfiles/Makefile  
 PORTSTOP ?= yes  
 DISTFILES_DB ?= ${.CURDIR}/infrastructure/db/locate.database  DISTFILES_DB ?= ${.CURDIR}/infrastructure/db/locate.database
   
   
 .if defined(SUBDIR)  .if defined(SUBDIR)
 # nothing to do  # nothing to do
 .elif defined(key) || defined(name) || defined(category) || defined(author)  .elif defined(key) || defined(name) || defined(category) || defined(author)
   
 # set up subdirs from the index, assume it's up-to-date  # set up subdirs from the index, assume it's up-to-date
 _CMD = perl ${.CURDIR}/infrastructure/build/index-retrieve index='${.CURDIR}/INDEX'  _CMD = perl ${.CURDIR}/infrastructure/bin/port-search-helper index='${.CURDIR}/INDEX'
 .  if defined(key)  .  if defined(key)
 _CMD += key='${key}'  _CMD += key='${key}'
 .  endif  .  endif
Line 45 
Line 44 
 SUBDIR += editors  SUBDIR += editors
 SUBDIR += education  SUBDIR += education
 SUBDIR += emulators  SUBDIR += emulators
   SUBDIR += fonts
 SUBDIR += games  SUBDIR += games
 SUBDIR += geo  SUBDIR += geo
 SUBDIR += graphics  SUBDIR += graphics
Line 55 
Line 55 
 SUBDIR += lang  SUBDIR += lang
 SUBDIR += mail  SUBDIR += mail
 SUBDIR += math  SUBDIR += math
   SUBDIR += meta
 SUBDIR += misc  SUBDIR += misc
 SUBDIR += multimedia  SUBDIR += multimedia
 SUBDIR += net  SUBDIR += net
 SUBDIR += news  SUBDIR += news
 SUBDIR += palm  
 SUBDIR += plan9  SUBDIR += plan9
 SUBDIR += print  SUBDIR += print
 SUBDIR += productivity  SUBDIR += productivity
 SUBDIR += russian  
 SUBDIR += security  SUBDIR += security
 SUBDIR += shells  SUBDIR += shells
 SUBDIR += sysutils  SUBDIR += sysutils
Line 77 
Line 76 
   
 index:  index:
         @rm -f ${.CURDIR}/INDEX          @rm -f ${.CURDIR}/INDEX
         @${MAKE} ${.CURDIR}/INDEX          @${_MAKE} USE_CCACHE=No ${.CURDIR}/INDEX
   
 ${.CURDIR}/INDEX:  ${.CURDIR}/INDEX:
         @echo "Generating INDEX..."          @echo "Generating INDEX..."
         @${MAKE} describe MACHINE_ARCH=i386 ECHO_MSG="echo 1>&2" > ${.CURDIR}/INDEX          @${_MAKE} describe MACHINE_ARCH=amd64 ARCH=amd64 ECHO_MSG="echo 1>&2" > ${.CURDIR}/INDEX
         @echo "Done."          @echo "Done."
   
 print-index:    ${.CURDIR}/INDEX  print-index:    ${.CURDIR}/INDEX
Line 103 
Line 102 
 .  endif  .  endif
 .endif  .endif
   
 LOCKDIR ?=  fix-permissions:
           @{ echo "COMMENT=test"; \
           echo "CATEGORIES=test"; \
           echo "PKGPATH=test/a"; \
           echo "DISTNAME=test"; \
           echo "PERMIT_PACKAGE_CDROM=Yes"; \
           echo "ECHO_MSG=:"; \
           echo ".include <bsd.port.mk>"; }|${MAKE} -f - fix-permissions
   
 mirror-maker:  
         @mkdir -p ${MIRROR_MK:H}  
 .if !empty(LOCKDIR)  
         @echo "EXEC = " >${MIRROR_MK}  
         @echo 'LOCKDIR = ${LOCKDIR}' >>${MIRROR_MK}  
         @echo 'PORTSDIR = ${PORTSDIR}' >>${MIRROR_MK}  
         @echo 'LOCK_CMD = perl $${PORTSDIR}/infrastructure/build/dolock' >>${MIRROR_MK}  
         @echo 'UNLOCK_CMD = rm -f' >>${MIRROR_MK}  
         @echo 'SIMPLE_LOCK = $${LOCK_CMD} $${LOCKDIR}/$$$$lock.lock; trap "$${UNLOCK_CMD} $${LOCKDIR}/$$$$lock.lock" 0 1 2 3 13 15' >>${MIRROR_MK}  
 .else  
         @echo "EXEC = exec" >${MIRROR_MK}  
         @echo 'SIMPLE_LOCK = :' >>${MIRROR_MK}  
 .endif  
   
         @echo '' >>${MIRROR_MK}  
         @echo "default:: ftp cdrom" >>${MIRROR_MK}  
         @echo ".PHONY: default all ftp cdrom" >>${MIRROR_MK}  
         @_DONE_FILES=`mktemp /tmp/depends.XXXXXXXXX|| exit 1`; \  
         export _DONE_FILES; \  
         trap "rm -f $${_DONE_FILES}" 0 1 2 3 13 15; \  
         ${MAKE} fetch-makefile \  
                 ECHO_MSG='echo >&2' \  
                 _FETCH_MAKEFILE=${MIRROR_MK}  
   
 homepages.html:  homepages.html:
         @echo '<html><ul>' >$@          @echo '<html><ul>' >$@
         @${MAKE} homepage-links ECHO_MSG='echo >&2' >>$@          @${_MAKE} homepage-links ECHO_MSG='echo >&2' >>$@
         @echo '</ul></html>' >>$@          @echo '</ul></html>' >>$@
   
 distfiles-update-locatedb:  distfiles-update-locatedb:
         @PORTSDIR=${.CURDIR} /bin/sh ${.CURDIR}/infrastructure/fetch/distfiles-update-locatedb ${DISTFILES_DB}          @PORTSDIR=${.CURDIR} /bin/sh ${.CURDIR}/infrastructure/fetch/distfiles-update-locatedb ${DISTFILES_DB}
   
 pkglocatedb:  pkglocatedb:
         @pkg_mklocatedb -d ${.CURDIR}/packages/${MACHINE_ARCH}/all/ \          @pkg_mklocatedb -a -d ${.CURDIR}/packages/${MACHINE_ARCH}/all/ \
             >${.CURDIR}/packages/${MACHINE_ARCH}/ftp/pkglocatedb              >${.CURDIR}/packages/${MACHINE_ARCH}/ftp/pkglocatedb
   
 .PHONY: mirror-maker index search distfiles-update-locatedb \  .PHONY: index search distfiles-update-locatedb \
         pkglocatedb print-licenses print-index          pkglocatedb print-licenses print-index fix-permissions

Legend:
Removed from v.1.60  
changed lines
  Added in v.1.80