# $NetBSD: Makefile,v 1.24 2000/05/14 22:53:37 christos Exp $ .include MFILESDIR= /usr/share/misc MFILES= magic magic.mime MAGIC= ${MFILESDIR}/magic .if ${MKSHARE} != "no" FILESDIR= ${MFILESDIR} FILES= ${MFILES} .endif PROG= file SRCS= file.c apprentice.c fsmagic.c softmagic.c ascmagic.c is_tar.c \ print.c compress.c readelf.c internat.c CPPFLAGS+= -DMAGIC='"$(MAGIC)"' -DHAVE_CONFIG_H -I${.CURDIR} CPPFLAGS+= -DBUILTIN_ELF -DELFCORE MAN= file.1 magic.5 CLEANFILES+= magic realall: file magic MAGDIRF:sh= echo $(.CURDIR)/magdir/[0-9a-z]* MAGFILES= $(.CURDIR)/Header \ $(.CURDIR)/Localstuff \ $(.CURDIR)/magdir/netbsd \ ${MAGDIRF} .if ${MKSHARE} != "no" magic: $(MAGFILES) cat $(MAGFILES) > $(.TARGET) .else magic: .endif .include