1997-10-24 13:00:17 +04:00
|
|
|
# $NetBSD: Makefile,v 1.15 1997/10/24 09:00:29 lukem Exp $
|
1993-08-02 21:48:44 +04:00
|
|
|
|
1997-09-30 21:00:30 +04:00
|
|
|
FILESDIR= /usr/share/misc
|
1997-03-25 00:57:01 +03:00
|
|
|
FILES= magic
|
|
|
|
MAGIC= ${FILESDIR}/${FILES}
|
1993-03-21 12:45:37 +03:00
|
|
|
|
1993-06-10 04:37:55 +04:00
|
|
|
PROG= file
|
|
|
|
SRCS= file.c apprentice.c fsmagic.c softmagic.c ascmagic.c is_tar.c \
|
1997-01-28 03:49:36 +03:00
|
|
|
print.c compress.c readelf.c internat.c
|
1997-10-24 13:00:17 +04:00
|
|
|
CPPFLAGS+= -DMAGIC='"$(MAGIC)"'
|
1994-12-22 15:29:38 +03:00
|
|
|
MAN= file.1 magic.5
|
1993-03-21 12:45:37 +03:00
|
|
|
|
1993-06-10 04:37:55 +04:00
|
|
|
CLEANFILES+= magic
|
|
|
|
all: file magic
|
|
|
|
|
1997-05-18 01:15:35 +04:00
|
|
|
MAGDIRF:sh= echo $(.CURDIR)/magdir/[0-9a-z]*
|
1997-04-03 11:17:24 +04:00
|
|
|
MAGFILES= $(.CURDIR)/magdir/Header \
|
|
|
|
$(.CURDIR)/magdir/Localstuff \
|
|
|
|
$(.CURDIR)/magdir/netbsd \
|
1997-05-18 01:15:35 +04:00
|
|
|
${MAGDIRF}
|
1997-03-25 00:57:01 +03:00
|
|
|
|
1993-06-10 04:37:55 +04:00
|
|
|
magic: $(MAGFILES)
|
|
|
|
cat $(MAGFILES) > $(.TARGET)
|
1993-03-21 12:45:37 +03:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|