File 0001-Doc-Disable-fallback-to-dvipdfm-remove-non-pdftex-ta.patch of Package sdcc

From 4fc50bb44706c4403812d5424823892c30717853 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Stefan=20Br=C3=BCns?= <stefan.bruens@rwth-aachen.de>
Date: Sat, 3 Feb 2018 01:20:11 +0100
Subject: [PATCH] Doc: Disable fallback to dvipdfm, remove non-pdftex targets

Invocate pdflatex to create the .aux file.
Also remove forced PDF version 1.3, but use 1.5, reduces file size by 40%

---
 doc/Makefile.in | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/doc/Makefile.in b/doc/Makefile.in
index e2c0743..f7d709f 100644
--- a/doc/Makefile.in
+++ b/doc/Makefile.in
@@ -57,8 +57,12 @@ $(MANUAL).html/index.html: $(MANUAL).tex $(MANUAL).aux ;#$(MANUAL).ind $(MANUAL)
 	fi
 	$(LYX) -e text $(notdir $<);
 
-%.pdf %.aux: %.tex %.dvi %.ind
-	which $(PDFLATEX) > /dev/null && $(PDFLATEX) $* || $(DVIPDFM) $*
+%.pdf %.aux: %.tex
+	sed -i 's#\\pdfoptionpdfminor.*#\\pdfminorversion=5\n\\pdfobjcompresslevel=2#' $<
+	$(PDFLATEX) -draftmode $*
+	$(MAKEINDEX) -q $*
+	$(PDFLATEX) -draftmode $*
+	$(PDFLATEX) $*
 
 #%.ps:  %.pdf
 #	$(DVIPS) $*
-- 
2.16.1

openSUSE Build Service is sponsored by