summaryrefslogtreecommitdiffstats
path: root/lib/libmd
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1994-09-08 11:24:54 +0000
committerbde <bde@FreeBSD.org>1994-09-08 11:24:54 +0000
commit2b849e2bed674036f6f0aebc8ffc4d6ceb8f423d (patch)
treec977b21556c301866503fd4c2112cc25e5b98320 /lib/libmd
parent2668a71e316ec131a5b255eddebbdbb291c7c0ea (diff)
downloadFreeBSD-src-2b849e2bed674036f6f0aebc8ffc4d6ceb8f423d.zip
FreeBSD-src-2b849e2bed674036f6f0aebc8ffc4d6ceb8f423d.tar.gz
Build *.3 and *.ref at build time, not at install time.
Diffstat (limited to 'lib/libmd')
-rw-r--r--lib/libmd/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libmd/Makefile b/lib/libmd/Makefile
index 40848f6..214594b 100644
--- a/lib/libmd/Makefile
+++ b/lib/libmd/Makefile
@@ -12,6 +12,8 @@ MLINKS+=mdX.3 MD5End.3 mdX.3 MD5File.3 mdX.3 MD5Data.3
CLEANFILES+= md[245]hl.c md[245].ref md[245].3 mddriver
CFLAGS+= -I${.CURDIR}
+all: md2.3 md2.ref md4.3 md4.ref md5.3 md5.ref
+
md2hl.c: mdXhl.c
sed -e 's/mdX/md2/g' -e 's/MDX/MD2/g' $> > $@
@@ -63,7 +65,7 @@ md5.ref:
@echo 'MD5 ("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789") = d174ab98d277d9f5a5611c2c9f419d9f' >> $@
@echo 'MD5 ("12345678901234567890123456789012345678901234567890123456789012345678901234567890") = 57edf4a22be3c955ac49da2e2107b67a' >> $@
-beforeinstall: md2.ref md4.ref md5.ref md2.3 md4.3 md5.3
+beforeinstall:
@${ECHO} if any of these test fail, the code produces wrong results
@${ECHO} and should NOT be used.
${CC} -static ${CFLAGS} ${LDFLAGS} -DMD=2 -o mddriver ${.CURDIR}/mddriver.c -L. -lmd
OpenPOWER on IntegriCloud