FILES support for bsd.prog.mk. See bsd.README for details.

Stolen from:	NetBSD
This commit is contained in:
ru 2001-12-17 13:59:35 +00:00
parent 650091c314
commit bbef88e1a5
27 changed files with 148 additions and 201 deletions

View File

@ -21,15 +21,10 @@ TYPE= real
# THE FOURTH LINE: # THE FOURTH LINE:
#TYPE= fake #TYPE= fake
FILES+= ${BLDS}
CLEANFILES+=${BLDS} CLEANFILES+=${BLDS}
all: ${BLDS} FILESDIR= ${SHAREDIR}/games/fortune
beforeinstall:
(cd ${.CURDIR} && ${INSTALL} -c -o ${SHAREOWN} -g ${SHAREGRP} \
-m ${SHAREMODE} ${FILES} ${DESTDIR}${SHAREDIR}/games/fortune)
${INSTALL} ${COPY} -o ${SHAREOWN} -g ${SHAREGRP} -m ${SHAREMODE} \
${BLDS} ${DESTDIR}${SHAREDIR}/games/fortune
.for f in fortunes fortunes2 fortunes2-o freebsd-tips limerick murphy murphy-o startrek zippy .for f in fortunes fortunes2 fortunes2-o freebsd-tips limerick murphy murphy-o startrek zippy
$f.dat: $f $f.dat: $f

View File

@ -2,7 +2,7 @@
MAINTAINER= peter@FreeBSD.org MAINTAINER= peter@FreeBSD.org
.include "${.CURDIR}/../Makefile.inc" .include "../Makefile.inc"
.PATH: ${CVSDIR}/contrib .PATH: ${CVSDIR}/contrib
.PATH: ${CVSDIR}/man .PATH: ${CVSDIR}/man
@ -13,8 +13,9 @@ SCRIPTS= clmerge cln_hist commit_prep cvs2vendor cvs_acls cvscheck \
FILES= README cvscheck.man cvshelp.man descend.man intro.doc FILES= README cvscheck.man cvshelp.man descend.man intro.doc
EXAMPDIR= /usr/share/examples/cvs EXAMPDIR= ${SHAREDIR}/examples/cvs
SCRIPTSDIR= ${EXAMPDIR}/contrib FILESDIR= ${EXAMPDIR}/contrib
SCRIPTSDIR= ${FILESDIR}
PERLPATH= /usr/bin/perl PERLPATH= /usr/bin/perl
CLEANFILES+= $(SCRIPTS) CLEANFILES+= $(SCRIPTS)
@ -29,12 +30,4 @@ CLEANFILES+= $(SCRIPTS)
.in: .in:
sed -e 's,@CSH@,/bin/csh,' -e 's,@PERL@,$(PERLPATH),' $< > $@ sed -e 's,@CSH@,/bin/csh,' -e 's,@PERL@,$(PERLPATH),' $< > $@
beforeinstall:
.for file in ${FILES}
cd ${.CURDIR} ; \
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \
${CVSDIR}/contrib/${file} ${DESTDIR}${EXAMPDIR}/contrib
.endfor
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,12 +1,8 @@
# $FreeBSD$ # $FreeBSD$
FILES= README checklist ftreebox infobox inputbox menubox msgbox \ NOOBJ= noobj
prgbox radiolist textbox treebox yesno FILES= README checklist ftreebox infobox inputbox menubox msgbox \
prgbox radiolist textbox treebox yesno
beforeinstall: FILESDIR= ${SHAREDIR}/examples/dialog
.for file in ${FILES}
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/${file} \
${DESTDIR}/usr/share/examples/dialog
.endfor
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -3,12 +3,13 @@
SCRIPTS= mmroff.pl SCRIPTS= mmroff.pl
MAN= mmroff.7 MAN= mmroff.7
TMACOWN?= ${BINOWN}
TMACGRP?= ${BINGRP}
TMACMODE?= ${NOBINMODE}
TMACDIR?= ${SHAREDIR}/tmac TMACDIR?= ${SHAREDIR}/tmac
FILES= 0.MT 5.MT 4.MT ms.cov se_ms.cov FILES= m.tmac mse.tmac
FILESDIR_m.tmac=${TMACDIR}
FILESDIR_mse.tmac=${TMACDIR}
FILES+= 0.MT 5.MT 4.MT ms.cov se_ms.cov
FILESDIR= ${TMACDIR}/mm
LOCALE= locale se_locale LOCALE= locale se_locale
MAN+= groff_mm.7 groff_mmse.7 MAN+= groff_mm.7 groff_mmse.7
@ -17,17 +18,13 @@ MLINKS= groff_mm.7 mm.7 groff_mmse.7 mmse.7
CLEANFILES+= ${MAN} CLEANFILES+= ${MAN}
beforeinstall: beforeinstall:
${INSTALL} -c -o ${TMACOWN} -g ${TMACGRP} -m ${TMACMODE} \
${DIST_DIR}/m.tmac ${DIST_DIR}/mse.tmac ${DESTDIR}${TMACDIR}
.for file in ${FILES}
${INSTALL} -c -o ${TMACOWN} -g ${TMACGRP} -m ${TMACMODE} \
${DIST_DIR}/mm/${file} ${DESTDIR}${TMACDIR}/mm
.endfor
.for locale in ${LOCALE} .for locale in ${LOCALE}
.if !exists(${locale}) || empty(${locale}) .if !exists(${locale}) || empty(${locale})
${INSTALL} -c -o ${TMACOWN} -g ${TMACGRP} -m ${TMACMODE} \ ${INSTALL} -c -o ${FILESOWN} -g ${FILESGRP} -m ${FILESMODE} \
/dev/null ${DESTDIR}${TMACDIR}/mm/${locale} /dev/null ${DESTDIR}${TMACDIR}/mm/${locale}
.endif .endif
.endfor .endfor
.include <bsd.prog.mk> .include <bsd.prog.mk>
.PATH: ${DIST_DIR}/mm

View File

@ -0,0 +1,7 @@
# $FreeBSD$
NOOBJ= noobj
FILES= Override.pm
FILESDIR= ${BSDPANDIR}/BSDPAN
.include <bsd.prog.mk>

View File

@ -0,0 +1,7 @@
# $FreeBSD$
NOOBJ= noobj
FILES= MM_Unix.pm Packlist.pm
FILESDIR= ${BSDPANDIR}/ExtUtils
.include <bsd.prog.mk>

View File

@ -2,17 +2,14 @@
# #
# Doing a make install builds /usr/libdata/perl/BSDPAN # Doing a make install builds /usr/libdata/perl/BSDPAN
DDIR= ${DESTDIR}/usr/libdata/perl/BSDPAN .include "Makefile.inc"
NOOBJ= noobj NOOBJ= noobj
FILES= BSDPAN.pm Config.pm
FILESDIR= ${BSDPANDIR}
all clean cleandir depend lint tags: clean:
FILES= BSDPAN.pm BSDPAN/Override.pm Config.pm ExtUtils/MM_Unix.pm ExtUtils/Packlist.pm SUBDIR= BSDPAN ExtUtils
.for file in ${FILES}
beforeinstall::
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${file} ${DDIR}/${file}
.endfor
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -0,0 +1,3 @@
# $FreeBSD$
BSDPANDIR= ${LIBDATADIR}/perl/BSDPAN

View File

@ -8,7 +8,7 @@
CLEANFILES= osreldate.h version vers.c CLEANFILES= osreldate.h version vers.c
SUBDIR= rpcsvc rpc SUBDIR= rpcsvc rpc
FILES= a.out.h ar.h assert.h bitstring.h complex.h ctype.h db.h \ HDRS= a.out.h ar.h assert.h bitstring.h complex.h ctype.h db.h \
dirent.h disktab.h \ dirent.h disktab.h \
dlfcn.h elf.h elf-hints.h err.h fnmatch.h fstab.h \ dlfcn.h elf.h elf-hints.h err.h fnmatch.h fstab.h \
fts.h glob.h grp.h \ fts.h glob.h grp.h \
@ -22,21 +22,21 @@ FILES= a.out.h ar.h assert.h bitstring.h complex.h ctype.h db.h \
string.h stringlist.h strings.h sysexits.h tar.h time.h timers.h \ string.h stringlist.h strings.h sysexits.h tar.h time.h timers.h \
ttyent.h unistd.h utime.h utmp.h vis.h wchar.h wctype.h ttyent.h unistd.h utime.h utmp.h vis.h wchar.h wctype.h
ARPAFILES= ftp.h inet.h nameser.h nameser_compat.h telnet.h tftp.h ARPAHDRS= ftp.h inet.h nameser.h nameser_compat.h telnet.h tftp.h
PROTOFILES= dumprestore.h routed.h rwhod.h talkd.h timed.h PROTOHDRS= dumprestore.h routed.h rwhod.h talkd.h timed.h
NETSMBFILES= nb_lib.h smb_lib.h smb_rap.h NETSMBHDRS= nb_lib.h smb_lib.h smb_rap.h
MFILES= float.h floatingpoint.h stdarg.h varargs.h MHDRS= float.h floatingpoint.h stdarg.h varargs.h
# posix4/aio.h conflicts with dysons and isn't installed: # posix4/aio.h conflicts with dysons and isn't installed:
PFILES= mqueue.h sched.h semaphore.h # aio.h PHDRS= mqueue.h sched.h semaphore.h # aio.h
# Only for default SHARED=copies case # Only for default SHARED=copies case
SFILES= soundcard.h joystick.h SHDRS= soundcard.h joystick.h
LFILES= aio.h errno.h fcntl.h linker_set.h poll.h stdint.h syslog.h \ LHDRS= aio.h errno.h fcntl.h linker_set.h poll.h stdint.h syslog.h \
termios.h ucontext.h termios.h ucontext.h
LDIRS= cam net netatalk netatm netgraph netinet netinet6 \ LDIRS= cam net netatalk netatm netgraph netinet netinet6 \
@ -80,23 +80,23 @@ beforeinstall: ${SHARED}
@rm -f ${DESTDIR}/usr/include/timepps.h @rm -f ${DESTDIR}/usr/include/timepps.h
cd ${.CURDIR}; \ cd ${.CURDIR}; \
${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \ ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \
${FILES} ${DESTDIR}/usr/include ${HDRS} ${DESTDIR}/usr/include
cd ${.CURDIR}/arpa; \ cd ${.CURDIR}/arpa; \
${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \ ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \
${ARPAFILES} ${DESTDIR}/usr/include/arpa ${ARPAHDRS} ${DESTDIR}/usr/include/arpa
cd ${.CURDIR}/protocols; \ cd ${.CURDIR}/protocols; \
${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \ ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \
${PROTOFILES} ${DESTDIR}/usr/include/protocols ${PROTOHDRS} ${DESTDIR}/usr/include/protocols
${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \ ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \
${.OBJDIR}/osreldate.h \ ${.OBJDIR}/osreldate.h \
${DESTDIR}/usr/include ${DESTDIR}/usr/include
.for i in ${LFILES} .for i in ${LHDRS}
ln -sf sys/$i ${DESTDIR}/usr/include/$i ln -sf sys/$i ${DESTDIR}/usr/include/$i
.endfor .endfor
.for i in ${MFILES} .for i in ${MHDRS}
ln -sf machine/$i ${DESTDIR}/usr/include/$i ln -sf machine/$i ${DESTDIR}/usr/include/$i
.endfor .endfor
.for i in ${PFILES} .for i in ${PHDRS}
ln -sf posix4/$i ${DESTDIR}/usr/include/$i ln -sf posix4/$i ${DESTDIR}/usr/include/$i
.endfor .endfor
@ -120,7 +120,7 @@ copies:
.endif .endif
.if exists(${.CURDIR}/../sys/contrib/netsmb/include/netsmb) .if exists(${.CURDIR}/../sys/contrib/netsmb/include/netsmb)
cd ${.CURDIR}/../sys/contrib/netsmb/include/netsmb; \ cd ${.CURDIR}/../sys/contrib/netsmb/include/netsmb; \
${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ${NETSMBFILES} \ ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ${NETSMBHDRS} \
${DESTDIR}/usr/include/netsmb ${DESTDIR}/usr/include/netsmb
.endif .endif
.if exists(${.CURDIR}/../sys/security/lomac) .if exists(${.CURDIR}/../sys/security/lomac)
@ -133,7 +133,7 @@ copies:
${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 *.h \ ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 *.h \
${DESTDIR}/usr/include/machine ${DESTDIR}/usr/include/machine
.endif .endif
.for i in ${SFILES} .for i in ${SHDRS}
ln -sf ../sys/$i ${DESTDIR}/usr/include/machine/$i ln -sf ../sys/$i ${DESTDIR}/usr/include/machine/$i
.endfor .endfor

View File

@ -1,13 +1,11 @@
# @(#)Makefile 8.1 (Berkeley) 6/5/93 # @(#)Makefile 8.1 (Berkeley) 6/5/93
# $FreeBSD$ # $FreeBSD$
# XXX MISSING: connectives words NOOBJ= noobj
FILES= README propernames web2 web2a
SYMLINKS= web2 ${BINDIR}/dict/words
NOOBJ= noobj
beforeinstall: # XXX MISSING: connectives words
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${SHAREMODE} ${FILES} \ FILES= README propernames web2 web2a
${DESTDIR}${BINDIR}/dict FILESDIR= ${BINDIR}/dict
SYMLINKS= web2 ${FILESDIR}/words
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,14 +1,7 @@
# $FreeBSD$ # $FreeBSD$
FILES= IMPLEMENTATION NOOBJ= noobj
FILES= IMPLEMENTATION
DOCDIR = ${SHAREDIR}/doc/IPv6 FILESDIR= ${SHAREDIR}/doc/IPv6
NOMAN = noman
NOOBJ = noobj
install:
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${SHAREMODE} ${FILES} \
${DESTDIR}${DOCDIR}
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,12 +1,12 @@
# $FreeBSD$ # $FreeBSD$
NOOBJ= noobj NOOBJ= noobj
BINDIR= /usr/share/examples
FILES= README FILES= README
# dist sample files # dist sample files
DISTFILES= BASIC.NAT BASIC_1.FW BASIC_2.FW \ .PATH: ${.CURDIR}/../../../contrib/ipfilter/rules
FILES+= BASIC.NAT BASIC_1.FW BASIC_2.FW \
example.1 example.2 example.3 example.4 example.5 \ example.1 example.2 example.3 example.4 example.5 \
example.6 example.7 example.8 example.9 example.10 \ example.6 example.7 example.8 example.9 example.10 \
example.11 example.12 example.13 example.sr firewall \ example.11 example.12 example.13 example.sr firewall \
@ -23,12 +23,6 @@ FILES+= ipf-howto.txt
# http://coombs.anu.edu.au/~avalon/ sample files # http://coombs.anu.edu.au/~avalon/ sample files
FILES+= examples.txt rules.txt FILES+= examples.txt rules.txt
beforeinstall: FILESDIR= ${SHAREDIR}/examples/ipfilter
cd ${.CURDIR}/../../../contrib/ipfilter/rules; \
${INSTALL} -o ${SHAREOWN} -g ${SHAREGRP} -m ${SHAREMODE} \
${DISTFILES} ${DESTDIR}${BINDIR}/ipfilter
cd ${.CURDIR}; \
${INSTALL} -o ${SHAREOWN} -g ${SHAREGRP} -m ${SHAREMODE} \
${FILES} ${DESTDIR}${BINDIR}/ipfilter
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -5,15 +5,11 @@ FILES= 0.al 1.al 2.al 3.al 4.al 5.al 6.al 7.al 8.al 9.al beep.al msg.al
CLEANFILES+= ${FILES} CLEANFILES+= ${FILES}
all: ${FILES} .SUFFIXES: .uu
${FILES}: .uu:
uudecode < ${.CURDIR}/${.TARGET}.uu uudecode < ${.IMPSRC}
depend lint tags: FILESDIR= ${BINDIR}/isdn
install:
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${SHAREMODE} ${FILES} \
${DESTDIR}${BINDIR}/isdn
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -7,29 +7,24 @@ MESRCS= acm.me chars.me deltext.me eqn.me float.me footnote.me \
index.me letterhead.me local.me null.me refer.me sh.me \ index.me letterhead.me local.me null.me refer.me sh.me \
tbl.me thesis.me tbl.me thesis.me
TMSRCS= tmac.orig_me TMSRCS= tmac.orig_me
FILES= ${MESRCS} ${TMSRCS} FILES= ${MESRCS:S/$/.tmp/} ${TMSRCS:S/$/.tmp/} revisions
CLEANFILES+= ${FILES:S/$/.tmp/} CLEANFILES+= ${MESRCS:S/$/.tmp/} ${TMSRCS:S/$/.tmp/}
# XXX use groff version # XXX use groff version
# MAN= me.7 # MAN= me.7
all: ${FILES:S/$/.tmp/} .for file in ${MESRCS} ${TMSRCS}
.for file in ${FILES}
${file}.tmp: ${file} ${file}.tmp: ${file}
sed -f ${.CURDIR}/strip.sed < ${.ALLSRC} > ${.TARGET} sed -f ${.CURDIR}/strip.sed < ${.ALLSRC} > ${.TARGET}
.endfor .endfor
beforeinstall: .for file in ${MESRCS:S/$/.tmp/} revisions
.for file in ${MESRCS} FILESDIR_${file}= ${MELIB}
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \ FILESNAME_${file}= ${file:R}
${file}.tmp ${DESTDIR}${MELIB}/${file}
.endfor .endfor
.for file in ${TMSRCS} .for file in ${TMSRCS:S/$/.tmp/}
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \ FILESDIR_${file}= ${TMLIB}
${file}.tmp ${DESTDIR}${TMLIB}/${file} FILESNAME_${file}= ${file:R}
.endfor .endfor
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \
${.CURDIR}/revisions ${DESTDIR}${MELIB}/
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -5,11 +5,6 @@ FILES= ascii birthtoken bsd-family-tree eqnchar flowers init.ee \
iso3166 iso639 man.template mdoc.template operator pci_vendors \ iso3166 iso639 man.template mdoc.template operator pci_vendors \
scsi_modes usb_hid_usages scsi_modes usb_hid_usages
NOOBJ= noobj NOOBJ= noobj
FILESDIR= ${BINDIR}/misc
all clean cleandir depend lint tags:
install:
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${SHAREMODE} \
${FILES} ${DESTDIR}${BINDIR}/misc
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -8,10 +8,9 @@ FILES+= bsd.port.mk bsd.port.post.mk bsd.port.pre.mk bsd.port.subdir.mk
FILES+= bsd.prog.mk bsd.sgml.mk bsd.subdir.mk bsd.sys.mk FILES+= bsd.prog.mk bsd.sgml.mk bsd.subdir.mk bsd.sys.mk
FILES+= sys.mk FILES+= sys.mk
NOOBJ= noobj NOOBJ= noobj
FILESDIR= ${BINDIR}/mk
beforeinstall: beforeinstall:
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${SHAREMODE} ${FILES} \
${DESTDIR}${BINDIR}/mk
date '+%Y%m%d' > ${DESTDIR}/var/db/port.mkversion date '+%Y%m%d' > ${DESTDIR}/var/db/port.mkversion
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -196,6 +196,11 @@ CLEANDIRS additional directories to remove during clean and cleandir
COPTS Additional flags to the compiler when creating C objects. COPTS Additional flags to the compiler when creating C objects.
FILES A list of non-executable files.
The installation is controlled by the FILESNAME, FILESOWN,
FILESGRP, FILESMODE, FILESDIR variables that can be
further specialized by FILES<VAR>_<file>.
HIDEGAME If HIDEGAME is defined, the binary is installed in HIDEGAME If HIDEGAME is defined, the binary is installed in
/usr/games/hide, and a symbolic link is created to /usr/games/hide, and a symbolic link is created to
/usr/games/dm. /usr/games/dm.

View File

@ -67,11 +67,11 @@ MAN1= ${MAN}
.endif .endif
.MAIN: all .MAIN: all
all: objwarn ${PROG} ${SCRIPTS} ${FILES}
.if !defined(NOMAN) .if !defined(NOMAN)
all: objwarn ${PROG} ${SCRIPTS} all-man _SUBDIR all: all-man
.else
all: objwarn ${PROG} ${SCRIPTS} _SUBDIR
.endif .endif
all: _SUBDIR
CLEANFILES+= ${PROG} ${OBJS} CLEANFILES+= ${PROG} ${OBJS}
@ -150,8 +150,8 @@ SCRIPTSDIR_${script:T}?= ${SCRIPTSDIR}
SCRIPTSOWN_${script:T}?= ${SCRIPTSOWN} SCRIPTSOWN_${script:T}?= ${SCRIPTSOWN}
SCRIPTSGRP_${script:T}?= ${SCRIPTSGRP} SCRIPTSGRP_${script:T}?= ${SCRIPTSGRP}
SCRIPTSMODE_${script:T}?= ${SCRIPTSMODE} SCRIPTSMODE_${script:T}?= ${SCRIPTSMODE}
_scriptsinstall: SCRIPTSINS_${script:T} _scriptsinstall: _SCRIPTSINS_${script:T}
SCRIPTSINS_${script:T}: ${script} _SCRIPTSINS_${script:T}: ${script}
${INSTALL} ${COPY} -o ${SCRIPTSOWN_${.ALLSRC:T}} \ ${INSTALL} ${COPY} -o ${SCRIPTSOWN_${.ALLSRC:T}} \
-g ${SCRIPTSGRP_${.ALLSRC:T}} -m ${SCRIPTSMODE_${.ALLSRC:T}} \ -g ${SCRIPTSGRP_${.ALLSRC:T}} -m ${SCRIPTSMODE_${.ALLSRC:T}} \
${_INSTALLFLAGS} ${.ALLSRC} \ ${_INSTALLFLAGS} ${.ALLSRC} \
@ -159,6 +159,33 @@ SCRIPTSINS_${script:T}: ${script}
.endfor .endfor
.endif .endif
.if defined(FILES) && !empty(FILES)
realinstall: _filesinstall
FILESDIR?= ${BINDIR}
FILESOWN?= ${SHAREOWN}
FILESGRP?= ${SHAREGRP}
FILESMODE?= ${SHAREMODE}
.for file in ${FILES}
.if defined(FILESNAME)
FILESNAME_${file:T}?= ${FILESNAME}
.else
FILESNAME_${file:T}?= ${file:T}
.endif
FILESDIR_${file:T}?= ${FILESDIR}
FILESOWN_${file:T}?= ${FILESOWN}
FILESGRP_${file:T}?= ${FILESGRP}
FILESMODE_${file:T}?= ${FILESMODE}
_filesinstall: _FILESINS_${file:T}
_FILESINS_${file:T}: ${file}
${INSTALL} ${COPY} -o ${FILESOWN_${.ALLSRC:T}} \
-g ${FILESGRP_${.ALLSRC:T}} -m ${FILESMODE_${.ALLSRC:T}} \
${_INSTALLFLAGS} ${.ALLSRC} \
${DESTDIR}${FILESDIR_${.ALLSRC:T}}/${FILESNAME_${.ALLSRC:T}}
.endfor
.endif
install: afterinstall _SUBDIR install: afterinstall _SUBDIR
.if !defined(NOMAN) .if !defined(NOMAN)
afterinstall: realinstall maninstall afterinstall: realinstall maninstall

View File

@ -7,15 +7,10 @@ FILES= 3101 9837 aa aed512 beehive diablo dtc382 hp700-wy ibm3101 std \
CLEANFILES+= ${FILES} CLEANFILES+= ${FILES}
all: ${FILES} .SUFFIXES: .uu
.uu:
uudecode < ${.IMPSRC}
${FILES}: FILESDIR= ${BINDIR}/tabset
uudecode < ${.CURDIR}/${.TARGET}.uu
depend lint tags:
install:
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${SHAREMODE} ${FILES} \
${DESTDIR}${BINDIR}/tabset
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -7,10 +7,9 @@
# #
MAN= termcap.5 MAN= termcap.5
FILES= map3270 termcap termcap.db
FILESDIR= ${BINDIR}/misc
CLEANFILES+= termcap termcap.db CLEANFILES+= termcap termcap.db
FILES= termcap termcap.db
all: termcap termcap.db
termcap: reorder termcap.src termcap: reorder termcap.src
TERM=dumb ex - ${.CURDIR}/termcap.src < ${.CURDIR}/reorder TERM=dumb ex - ${.CURDIR}/termcap.src < ${.CURDIR}/reorder
@ -18,14 +17,7 @@ termcap: reorder termcap.src
termcap.db: termcap termcap.db: termcap
cap_mkdb termcap cap_mkdb termcap
beforeinstall:
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${SHAREMODE} \
${FILES} ${DESTDIR}${BINDIR}/misc
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${SHAREMODE} \
${.CURDIR}/map3270 ${DESTDIR}${BINDIR}/misc
etc-termcap: etc-termcap:
rm -f ${DESTDIR}/etc/termcap ln -fs ${BINDIR}/misc/termcap ${DESTDIR}/etc/termcap
ln -s ${BINDIR}/misc/termcap ${DESTDIR}/etc/termcap
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -18,25 +18,21 @@ ENUS_LINKS = ISO8859-1 ISO8859-15
FILES= ${LANGS:S/$/.ee.cat/} FILES= ${LANGS:S/$/.ee.cat/}
CLEANFILES+= ${FILES} CLEANFILES+= ${FILES}
all: ${FILES}
.for lang in ${LANGS} .for lang in ${LANGS}
${lang}.ee.cat: ${.CURDIR}/nls/${lang}/ee.msg ${lang}.ee.cat: ${.CURDIR}/nls/${lang}/ee.msg
gencat -new ${.TARGET} ${.ALLSRC} gencat -new ${.TARGET} ${.ALLSRC}
.endfor .endfor
beforeinstall:
.for lang in ${LANGS} .for lang in ${LANGS}
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \ FILESDIR_${lang:S/$/.ee.cat/}= ${NLSDIR}/${lang}
${lang}.ee.cat ${DESTDIR}${NLSDIR}/${lang}/ee.cat FILESNAME_${lang:S/$/.ee.cat/}= ee.cat
.endfor .endfor
.for link in ${ENUS_LINKS} .for link in ${ENUS_LINKS}
ln -sf ../en_US.US-ASCII/ee.cat \ SYMLINKS+= ../en_US.US-ASCII/ee.cat ${NLSDIR}/en_US.${link}/ee.cat
${DESTDIR}${NLSDIR}/en_US.${link}/ee.cat
.endfor .endfor
.for link in ${8859_15_LINKS} .for link in ${8859_15_LINKS}
ln -sf ../${link}.ISO8859-1/ee.cat \ SYMLINKS+= ../${link}.ISO8859-1/ee.cat ${NLSDIR}/${link}.ISO8859-15/ee.cat
${DESTDIR}${NLSDIR}/${link}.ISO8859-15/ee.cat
.endfor .endfor
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -32,19 +32,15 @@ HTMLS= acl.html address_list.html comments.html config.html controls.html \
docdef.html example.html include.html index.html key.html \ docdef.html example.html include.html index.html key.html \
logging.html master.html options.html server.html trusted-keys.html \ logging.html master.html options.html server.html trusted-keys.html \
zone.html zone.html
FILES= DynamicUpdate FAQ.1of2 FAQ.2of2 style.txt MISCS= DynamicUpdate FAQ.1of2 FAQ.2of2 style.txt
FILES= ${HTMLS} ${MISCS}
.PATH: ${BIND_DIR}/doc/html ${BIND_DIR}/doc/misc
beforeinstall:
.for file in ${HTMLS} .for file in ${HTMLS}
cd ${BIND_DIR}/doc/html ; \ FILESDIR_${file}= ${DOCDIR}/html
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${file} \
${DESTDIR}${DOCDIR}/html
.endfor .endfor
.for file in ${FILES} .for file in ${MISCS}
cd ${BIND_DIR}/doc/misc ; \ FILESDIR_${file}= ${DOCDIR}/misc
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${file} \
${DESTDIR}${DOCDIR}/misc
.endfor .endfor
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,17 +1,9 @@
# $FreeBSD$ # $FreeBSD$
NOOBJ= noobj
FILES= Acknowledgements Bibliography CharGen \ FILES= Acknowledgements Bibliography CharGen \
Charsets EscapeSequences Keyboard.HP Keyboard.VT \ Charsets EscapeSequences Keyboard.HP Keyboard.VT \
NotesAndHints NotesAndHints
FILESDIR= ${BINDIR}/Doc
beforeinstall: .include <bsd.prog.mk>
for file in ${FILES}; \
do \
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
${.CURDIR}/$$file ${DESTDIR}${BINDIR}/Doc/$$file ; \
done
afterdistribute: beforeinstall
.include "../Makefile.inc"
.include <bsd.subdir.mk>

View File

@ -1,13 +1,7 @@
# $FreeBSD$ # $FreeBSD$
NOOBJ= noobj
FILES= Termcap Terminfo pcvt.el xmodmap-german pcvt.sh FILES= Termcap Terminfo pcvt.el xmodmap-german pcvt.sh
FILESDIR= ${BINDIR}/Etc
NOOBJ=
beforeinstall:
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} ${FILES} \
${DESTDIR}${BINDIR}/Etc
afterdistribute: beforeinstall
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,17 +1,8 @@
# $FreeBSD$ # $FreeBSD$
NOOBJ= noobj
FILES= README.FIRST
SUBDIR= Doc Etc SUBDIR= Doc Etc
FILES= README.FIRST
beforeinstall:
for file in ${FILES}; \
do \
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
${.CURDIR}/$$file ${DESTDIR}${BINDIR}/$$file ; \
done
afterdistribute: beforeinstall
.include "Makefile.inc" .include "Makefile.inc"
.include <bsd.subdir.mk> .include <bsd.prog.mk>

View File

@ -1,5 +1,4 @@
# $FreeBSD$ # $FreeBSD$
DISTRIBUTION= doc DISTRIBUTION= doc
BINDIR= /usr/share/pcvt BINDIR= ${SHAREDIR}/pcvt
BINMODE= 0444

View File

@ -6,16 +6,11 @@
uudecode ${.IMPSRC} uudecode ${.IMPSRC}
FILES= 2681.sys cdk.sys FILES= 2681.sys cdk.sys
FILESDIR= ${BOOTDIR}
CLEANFILES= ${FILES} CLEANFILES= ${FILES}
MAN= stl.4 MAN= stl.4
MLINKS= stl.4 stli.4 MLINKS= stl.4 stli.4
MANSUBDIR=/i386 MANSUBDIR=/i386
all: $(FILES)
beforeinstall:
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \
${FILES} ${DESTDIR}${BOOTDIR}
.include <bsd.prog.mk> .include <bsd.prog.mk>