1# $FreeBSD: head/lib/libmagic/Makefile 297997 2016-04-14 21:06:10Z bdrewery $ |
2# Copyright (c) David E. O'Brien, 2000-2004, 2006, 2009 3 4CONTRDIR= ${.CURDIR}/../../contrib/file 5.PATH: ${CONTRDIR}/src 6.PATH: ${CONTRDIR}/doc 7 8LIB= magic 9SHLIB_MAJOR= 4 --- 24 unchanged lines hidden (view full) --- 34magic: ${MAGFILES} 35 cat ${.ALLSRC:O} > ${.TARGET} 36 37magic.mgc: mkmagic magic 38 ./mkmagic magic 39 40CLEANFILES+= mkmagic 41build-tools: mkmagic |
42mkmagic: apprentice.c cdf_time.c encoding.c funcs.c magic.c print.c ${BUILD_TOOLS_META} |
43 ${CC} ${CFLAGS} -DCOMPILE_ONLY ${LDFLAGS} -o ${.TARGET} ${.ALLSRC} \ 44 ${LDADD} 45 46FILEVER!= awk '$$1 == "\#define" && $$2 == "VERSION" { print $$3; exit }' \ 47 ${.CURDIR}/config.h 48CLEANFILES+= ${MAN} 49.for mp in ${MAN} 50${mp}: ${mp:C/[0-9]/man/} 51 sed -e 's/__FSECTION__/5/g' -e 's/__CSECTION__/1/g' \ 52 -e 's/__VERSION__/${FILEVER}/g' \ 53 -e 's,__MAGIC__,${MAGICPATH}/magic,g' ${.ALLSRC} > ${.TARGET} 54.endfor 55 56.include <bsd.lib.mk> |