From 2b849e2bed674036f6f0aebc8ffc4d6ceb8f423d Mon Sep 17 00:00:00 2001 From: bde Date: Thu, 8 Sep 1994 11:24:54 +0000 Subject: Build *.3 and *.ref at build time, not at install time. --- lib/libmd/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/libmd') 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 -- cgit v1.1