Commit 65f68fe7 authored by Niels Möller's avatar Niels Möller
Browse files

(TARGETS, DISTFILES): Added nettle.pdf.

(.texinfo.dvi,, .ps.pdf): New targets, to build nettle.pdf.
(DOCTARGETS): New variable with targets that shouldn't be deleted
by make clean.
(maintainer-clean-here): New target. Deletes generated
documentation files.

Rev: src/nettle/
parent bbd635ca
......@@ -14,8 +14,9 @@ include config.make
TARGETS = aesdata$(EXEEXT) desdata$(EXEEXT) shadata$(EXEEXT) \
libnettle.a $(SHLIBTARGET) \ nettle.html
libnettle.a $(SHLIBTARGET)
DOCTARGETS = nettle.html nettle.pdf
all check install uninstall:
$(MAKE) $@-here
......@@ -35,7 +36,7 @@ check-here:
dvi installcheck uninstallcheck:
all-here: $(TARGETS)
all-here: $(TARGETS) $(DOCTARGETS)
nettle_SOURCES = aes.c \
aes-decrypt-table.c aes-decrypt.c \
......@@ -103,7 +104,7 @@ DISTFILES = $(SOURCES) $(HEADERS) .bootstrap aclocal.m4 \
aes-internal.h cast128_sboxes.h desinfo.h desCode.h \
serpent_sboxes.h nettle-internal.h \
asm.m4 \
nettle.texinfo nettle.html sha-example.c
nettle.texinfo nettle.html nettle.pdf sha-example.c
# Rules building libnettle.a
# FIXME: Do we really need to delete the archive first?
......@@ -171,6 +172,16 @@ des.o: des.c des.h $(des_headers)
--output $@T `basename $<` \
&& test -s $@T && mv -f $@T $@
cd $(srcdir) && texi2dvi `basename $<`
cd $(srcdir) && dvips -Ppdf -G0 -o `basename $< .dvi`.ps `basename $<`
PS2PDFFLAGS=-dCompatibilityLevel=1.3 -dMAxSubsetPct=100 -dSubsetFonts=true -dEmbedAllFonts=true
cd $(srcdir) && ps2pdf $(PS2PDFFLAGS) `basename $<`
# Configure-related rules, mostly copied from the autoconf manual. No
# $(srcdir) prefixes on the targets, though.
......@@ -323,5 +334,8 @@ distclean-here: clean-here
-rm -f config.h stamp-h config.log config.status \
config.make config.m4 Makefile nettle-stdint.h *.asm *.d
-rm -f $(DOCTARGETS) *.dvi *.ps
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment