From 65f68fe71379d79cb50ac565c55f4d293bede1db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20M=C3=B6ller?= <nisse@lysator.liu.se> Date: Wed, 5 Oct 2005 17:39:10 +0200 Subject: [PATCH] (TARGETS, DISTFILES): Added nettle.pdf. (.texinfo.dvi, .dvi.ps, .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/Makefile.in:1.22 --- Makefile.in | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/Makefile.in b/Makefile.in index 01eaad50..5cfc94d7 100644 --- a/Makefile.in +++ b/Makefile.in @@ -14,8 +14,9 @@ include config.make PRE_CPPFLAGS = -I. TARGETS = aesdata$(EXEEXT) desdata$(EXEEXT) shadata$(EXEEXT) \ - libnettle.a $(SHLIBTARGET) \ - nettle.info nettle.html + libnettle.a $(SHLIBTARGET) + +DOCTARGETS = nettle.info nettle.html nettle.pdf all check install uninstall: $(MAKE) $@-here @@ -35,7 +36,7 @@ check-here: dvi installcheck uninstallcheck: true -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 configure.ac \ aes-internal.h cast128_sboxes.h desinfo.h desCode.h \ serpent_sboxes.h nettle-internal.h \ asm.m4 \ - nettle.texinfo nettle.info nettle.html sha-example.c + nettle.texinfo nettle.info 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 $@ +.texinfo.dvi: + cd $(srcdir) && texi2dvi `basename $<` + +.dvi.ps: + cd $(srcdir) && dvips -Ppdf -G0 -o `basename $< .dvi`.ps `basename $<` + +PS2PDFFLAGS=-dCompatibilityLevel=1.3 -dMAxSubsetPct=100 -dSubsetFonts=true -dEmbedAllFonts=true +.ps.pdf: + 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 +maintainer-clean-here: + -rm -f $(DOCTARGETS) *.dvi *.ps + DEP_FILES = $(SOURCES:.c=.$(OBJEXT).d) $(SOURCES:.c=.p$(OBJEXT).d) @DEP_INCLUDE@ $(DEP_FILES) -- GitLab