NetBSD/usr.bin/file/Makefile

26 lines
573 B
Makefile
Raw Normal View History

1997-09-30 21:00:30 +04:00
# $NetBSD: Makefile,v 1.14 1997/09/30 17:00:36 is Exp $
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
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
CFLAGS+= -DMAGIC='"$(MAGIC)"'
1994-12-22 15:29:38 +03:00
MAN= file.1 magic.5
1993-03-21 12:45:37 +03:00
CLEANFILES+= magic
all: file magic
MAGDIRF:sh= echo $(.CURDIR)/magdir/[0-9a-z]*
MAGFILES= $(.CURDIR)/magdir/Header \
$(.CURDIR)/magdir/Localstuff \
$(.CURDIR)/magdir/netbsd \
${MAGDIRF}
1997-03-25 00:57:01 +03:00
magic: $(MAGFILES)
cat $(MAGFILES) > $(.TARGET)
1993-03-21 12:45:37 +03:00
.include <bsd.prog.mk>