Use bsd.subdir.mk for sub-directory handling.
Discussed with: shaun
This commit is contained in:
parent
59792d145d
commit
11bd242bdf
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/www/; revision=37474
6 changed files with 38 additions and 22 deletions
14
en/cgi/GnatsPR/Makefile
Normal file
14
en/cgi/GnatsPR/Makefile
Normal file
|
@ -0,0 +1,14 @@
|
|||
# $FreeBSD$
|
||||
|
||||
.if exists(../Makefile.conf)
|
||||
.include "../Makefile.conf"
|
||||
.endif
|
||||
.if exists(../Makefile.inc)
|
||||
.include "../Makefile.inc"
|
||||
.endif
|
||||
|
||||
SUBDIR= Section
|
||||
|
||||
DATA= MIMEIterator.pm Section.pm
|
||||
|
||||
.include "${WEB_PREFIX}/share/mk/web.site.mk"
|
4
en/cgi/GnatsPR/Makefile.inc
Normal file
4
en/cgi/GnatsPR/Makefile.inc
Normal file
|
@ -0,0 +1,4 @@
|
|||
# $FreeBSD$
|
||||
|
||||
WEBBASE?= /data/cgi/GnatsPR
|
||||
WEB_PREFIX?= ${.CURDIR}/../../../..
|
12
en/cgi/GnatsPR/Section/Makefile
Normal file
12
en/cgi/GnatsPR/Section/Makefile
Normal file
|
@ -0,0 +1,12 @@
|
|||
# $FreeBSD$
|
||||
|
||||
.if exists(../Makefile.conf)
|
||||
.include "../Makefile.conf"
|
||||
.endif
|
||||
.if exists(../Makefile.inc)
|
||||
.include "../Makefile.inc"
|
||||
.endif
|
||||
|
||||
DATA= Email.pm FieldStart.pm MIME.pm Patch.pm StateChange.pm Text.pm
|
||||
|
||||
.include "${WEB_PREFIX}/share/mk/web.site.mk"
|
|
@ -1,4 +1,4 @@
|
|||
# $FreeBSD: www/en/cgi/Makefile,v 1.34 2007/03/19 05:44:58 dougb Exp $
|
||||
# $FreeBSD: www/en/cgi/Makefile,v 1.35 2011/07/20 23:52:12 shaun Exp $
|
||||
|
||||
.if exists(../Makefile.conf)
|
||||
.include "../Makefile.conf"
|
||||
|
@ -16,18 +16,6 @@ DATA+= cvsweb.conf
|
|||
DATA+= cvsweb.conf-freebsd
|
||||
DATA+= query-pr-lib.pl
|
||||
|
||||
CGI_SUBDIRS= GnatsPR GnatsPR/Section
|
||||
|
||||
CGI_SUBFILES+= GnatsPR/MIMEIterator.pm
|
||||
CGI_SUBFILES+= GnatsPR/Section.pm
|
||||
CGI_SUBFILES+= GnatsPR/Section/Email.pm
|
||||
CGI_SUBFILES+= GnatsPR/Section/FieldStart.pm
|
||||
CGI_SUBFILES+= GnatsPR/Section/MIME.pm
|
||||
CGI_SUBFILES+= GnatsPR/Section/Patch.pm
|
||||
CGI_SUBFILES+= GnatsPR/Section/StateChange.pm
|
||||
CGI_SUBFILES+= GnatsPR/Section/Text.pm
|
||||
CGI_SUBFILES+= GnatsPR/SectionIterator.pm
|
||||
|
||||
CGI=
|
||||
CGI+= confirm-code.cgi
|
||||
CGI+= cvsweb.cgi
|
||||
|
@ -46,6 +34,8 @@ CGI+= query-pr-summary.cgi
|
|||
CGI+= search.cgi
|
||||
CGI+= url.cgi
|
||||
|
||||
SUBDIR= GnatsPR
|
||||
|
||||
.SUFFIXES: .C .cgi
|
||||
|
||||
.C.cgi:
|
||||
|
|
4
en/cgi/Makefile.inc
Normal file
4
en/cgi/Makefile.inc
Normal file
|
@ -0,0 +1,4 @@
|
|||
# $FreeBSD$
|
||||
|
||||
WEBBASE?= /data/cgi
|
||||
WEB_PREFIX?= ${.CURDIR}/../../..
|
|
@ -1,5 +1,5 @@
|
|||
# bsd.web.mk
|
||||
# $FreeBSD: www/share/mk/web.site.mk,v 1.78 2011/07/21 00:12:02 shaun Exp $
|
||||
# $FreeBSD: www/share/mk/web.site.mk,v 1.79 2011/07/21 00:42:50 shaun Exp $
|
||||
|
||||
#
|
||||
# Build and install a web site.
|
||||
|
@ -358,14 +358,6 @@ realinstall: ${COOKIE} ${_ALLINSTALL} ${CGI} _PROGSUBDIR
|
|||
.endif
|
||||
.if defined(CGI) && !empty(CGI)
|
||||
@${MKDIR} -p ${CGIINSTALLDIR}
|
||||
.if defined(CGI_SUBDIRS) && !empty(CGI_SUBDIRS)
|
||||
.for sd in ${CGI_SUBDIRS}
|
||||
@${MKDIR} -p ${CGIINSTALLDIR}/${sd}
|
||||
.endfor
|
||||
.for sf in ${CGI_SUBFILES}
|
||||
${INSTALL_CGI} ${.CURDIR}/${sf} ${CGIINSTALLDIR}/${sf}
|
||||
.endfor
|
||||
.endif
|
||||
.for entry in ${CGI}
|
||||
${INSTALL_CGI} ${.CURDIR}/${entry} ${CGIINSTALLDIR}
|
||||
.endfor
|
||||
|
|
Loading…
Reference in a new issue