Install files via FILES.
This commit is contained in:
parent
184368159f
commit
ccaec6d133
@ -29,13 +29,15 @@ SRCS= file.c apprentice.c fsmagic.c softmagic.c ascmagic.c \
|
|||||||
# compress.c is_tar.c readelf.c internat.c print.c
|
# compress.c is_tar.c readelf.c internat.c print.c
|
||||||
|
|
||||||
MAGICPATH= /usr/share/misc
|
MAGICPATH= /usr/share/misc
|
||||||
MAGICMODE= 444
|
|
||||||
|
|
||||||
CFLAGS+= -DMAGIC='"${MAGICPATH}/magic"' -DBUILTIN_ELF -DELFCORE -DHAVE_CONFIG_H
|
CFLAGS+= -DMAGIC='"${MAGICPATH}/magic"' -DBUILTIN_ELF -DELFCORE -DHAVE_CONFIG_H
|
||||||
CFLAGS+= -I${.CURDIR} -I${SRCDIR}
|
CFLAGS+= -I${.CURDIR} -I${SRCDIR}
|
||||||
|
|
||||||
CLEANFILES+= magic magic.mgc magic.mime.mgc magic.mime.PITA
|
CLEANFILES+= magic magic.mgc magic.mime.mgc magic.mime.PITA
|
||||||
|
|
||||||
|
FILES= magic magic.mgc ${SRCDIR}/magic.mime magic.mime.mgc
|
||||||
|
FILESDIR= ${MAGICPATH}
|
||||||
|
|
||||||
MAGFILES= ${SRCDIR}/Header\
|
MAGFILES= ${SRCDIR}/Header\
|
||||||
${SRCDIR}/Localstuff\
|
${SRCDIR}/Localstuff\
|
||||||
${SRCDIR}/Magdir/[a-z]*
|
${SRCDIR}/Magdir/[a-z]*
|
||||||
@ -59,9 +61,4 @@ mkmagic: apprentice.c print.c
|
|||||||
${CC} -DHAVE_CONFIG_H -DCOMPILE_ONLY \
|
${CC} -DHAVE_CONFIG_H -DCOMPILE_ONLY \
|
||||||
-I${.CURDIR} -I${SRCDIR} -o ${.TARGET} ${.ALLSRC}
|
-I${.CURDIR} -I${SRCDIR} -o ${.TARGET} ${.ALLSRC}
|
||||||
|
|
||||||
beforeinstall:
|
|
||||||
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${MAGICMODE} \
|
|
||||||
magic magic.mgc ${SRCDIR}/magic.mime magic.mime.mgc \
|
|
||||||
${DESTDIR}${MAGICPATH}
|
|
||||||
|
|
||||||
.include <bsd.prog.mk>
|
.include <bsd.prog.mk>
|
||||||
|
@ -4,6 +4,8 @@
|
|||||||
PROG= gprof
|
PROG= gprof
|
||||||
SRCS= gprof.c aout.c arcs.c dfn.c elf.c lookup.c ${MACHINE_ARCH}.c hertz.c \
|
SRCS= gprof.c aout.c arcs.c dfn.c elf.c lookup.c ${MACHINE_ARCH}.c hertz.c \
|
||||||
printgprof.c printlist.c kernel.c
|
printgprof.c printlist.c kernel.c
|
||||||
|
FILES= gprof.flat gprof.callg
|
||||||
|
FILESDIR= ${SHAREDIR}/misc
|
||||||
|
|
||||||
beforeinstall:
|
beforeinstall:
|
||||||
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \
|
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \
|
||||||
|
@ -6,14 +6,13 @@ SRCS= version.c aux.c cmd1.c cmd2.c cmd3.c cmdtab.c collect.c edit.c fio.c \
|
|||||||
getname.c head.c v7.local.c lex.c list.c main.c names.c popen.c \
|
getname.c head.c v7.local.c lex.c list.c main.c names.c popen.c \
|
||||||
quit.c send.c strings.c temp.c tty.c vars.c
|
quit.c send.c strings.c temp.c tty.c vars.c
|
||||||
WARNS?= 0
|
WARNS?= 0
|
||||||
SFILES= mail.help mail.tildehelp
|
FILES= mail.help mail.tildehelp
|
||||||
|
FILESDIR= ${SHAREDIR}/misc
|
||||||
EFILES= mail.rc
|
EFILES= mail.rc
|
||||||
LINKS= ${BINDIR}/mail ${BINDIR}/Mail
|
LINKS= ${BINDIR}/mail ${BINDIR}/Mail
|
||||||
MLINKS= mail.1 Mail.1
|
MLINKS= mail.1 Mail.1
|
||||||
|
|
||||||
beforeinstall:
|
.PATH: ${.CURDIR}/misc
|
||||||
cd ${.CURDIR}/misc; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} \
|
|
||||||
-m 444 ${SFILES} ${DESTDIR}/usr/share/misc
|
|
||||||
|
|
||||||
etc-mailrc:
|
etc-mailrc:
|
||||||
cd ${.CURDIR}/misc; ${INSTALL} -c -o root -g wheel \
|
cd ${.CURDIR}/misc; ${INSTALL} -c -o root -g wheel \
|
||||||
|
@ -1,9 +1,7 @@
|
|||||||
# $FreeBSD$
|
# $FreeBSD$
|
||||||
|
|
||||||
PROG= units
|
PROG= units
|
||||||
|
FILES= units.lib
|
||||||
beforeinstall:
|
FILESDIR= ${SHAREDIR}/misc
|
||||||
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \
|
|
||||||
${.CURDIR}/units.lib ${DESTDIR}/usr/share/misc
|
|
||||||
|
|
||||||
.include <bsd.prog.mk>
|
.include <bsd.prog.mk>
|
||||||
|
@ -5,6 +5,11 @@ PROG= vfontedpr
|
|||||||
SRCS= regexp.c vfontedpr.c
|
SRCS= regexp.c vfontedpr.c
|
||||||
NO_WERROR=yes
|
NO_WERROR=yes
|
||||||
SCRIPTS=vgrind.sh
|
SCRIPTS=vgrind.sh
|
||||||
|
FILES= vgrindefs.src vgrindefs.src.db tmac.vgrind
|
||||||
|
FILESNAME_vgrindefs.src= vgrindefs
|
||||||
|
FILESNAME_vgrindefs.src.db= vgrindefs.db
|
||||||
|
FILESDIR= ${SHAREDIR}/misc
|
||||||
|
FILESDIR_tmac.vgrind= ${SHAREDIR}/tmac
|
||||||
MAN= vgrind.1 vgrindefs.5
|
MAN= vgrind.1 vgrindefs.5
|
||||||
|
|
||||||
BINDIR= /usr/libexec
|
BINDIR= /usr/libexec
|
||||||
@ -18,12 +23,4 @@ all: ${EXTRA}
|
|||||||
${EXTRA}: ${.CURDIR}/vgrindefs.src
|
${EXTRA}: ${.CURDIR}/vgrindefs.src
|
||||||
cap_mkdb -f vgrindefs.src ${.CURDIR}/vgrindefs.src
|
cap_mkdb -f vgrindefs.src ${.CURDIR}/vgrindefs.src
|
||||||
|
|
||||||
beforeinstall:
|
|
||||||
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/vgrindefs.src \
|
|
||||||
${DESTDIR}/usr/share/misc/vgrindefs
|
|
||||||
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 \
|
|
||||||
vgrindefs.src.db ${DESTDIR}/usr/share/misc/vgrindefs.db
|
|
||||||
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/tmac.vgrind \
|
|
||||||
${DESTDIR}/usr/share/tmac
|
|
||||||
|
|
||||||
.include <bsd.prog.mk>
|
.include <bsd.prog.mk>
|
||||||
|
Loading…
Reference in New Issue
Block a user