Browse Source

Depend on image files in Makefile

For this to work, all images included in tex files must be given with their file
suffix.  For this reason, I also had to update some of these text files.
Daniel 10 months ago
parent
commit
bf7b973acc
Signed by: Daniel Borchmann <daniel@algebra20.de> GPG Key ID: 4F63DB96D45AA9C6

+ 5
- 5
Makefile View File

@@ -42,13 +42,13 @@ $(foreach presentation, $(PRESENTATIONS), \
42 42
   $(eval $(call PRESENTATION_template, $(presentation))))
43 43
 
44 44
 # This template is called with a single argument like
45
-# ‘presentations/content/ccc/ccc_bundesweit.tex’; it generates a rule that does
46
-# nothing so far.  In the future, it could depende on all images used by the tex
47
-# file.
45
+# ‘presentations/content/ccc/ccc_bundesweit.tex’; it generates a rule that
46
+# dependes on all images used by the tex file.  The actual recipe just checks
47
+# whether the tex file is existent and updates the timestamp.
48 48
 
49 49
 define DECK_template
50
-$(1):
51
-	:
50
+$(1): $(shell perl -ne '/includegraphics[^\{]*\{([^\}]*)\}/ && print "presentations/", $$1, " "' $(1))
51
+	test -f $(1) && touch $(1)
52 52
 endef
53 53
 
54 54
 # Files contained in decks are only considered in the top-level directory

+ 1
- 1
presentations/content/alternate/alternate.tex View File

@@ -94,7 +94,7 @@ Plattformübergreifende Synchronisierung von Dateien, Dokumenten, Kalendern, Kon
94 94
       \includegraphics{img/fdroid.png}
95 95
       \column{5cm}
96 96
       \begin{center}
97
-        \includegraphics[width=2cm]{img/F-Droid_Logo_2}
97
+        \includegraphics[width=2cm]{img/F-Droid_Logo_2.pdf}
98 98
         \par\end{center}
99 99
         \begin{center}
100 100
           \par

+ 1
- 1
presentations/content/geraetesicherheit/foss_programme_apps.tex View File

@@ -39,7 +39,7 @@
39 39
     \column{5cm}
40 40
 
41 41
     \begin{center}
42
-      \includegraphics[width=2cm]{img/F-Droid_Logo_2}
42
+      \includegraphics[width=2cm]{img/F-Droid_Logo_2.pdf}
43 43
     \par\end{center}
44 44
     \begin{center}
45 45
     \par\end{center}

+ 1
- 1
presentations/content/geraetesicherheit/unerwuenschte_funktionalitaet.tex View File

@@ -10,7 +10,7 @@
10 10
 \begin{frame}
11 11
   \frametitle{Unerwünschte Funktionalität}
12 12
   \begin{center}
13
-    \includegraphics[width=7cm]{img/backdoor-apps}
13
+    \includegraphics[width=7cm]{img/backdoor-apps.png}
14 14
   \par\end{center}
15 15
 \end{frame}
16 16
 

+ 3
- 3
presentations/content/motivation/freesoftware.tex View File

@@ -31,11 +31,11 @@
31 31
     \column{7cm}
32 32
 
33 33
     \begin{center}
34
-      \includegraphics[width=4.5cm]{img/stallman}
34
+      \includegraphics[width=4.5cm]{img/stallman.jpg}
35 35
     \par\end{center}
36 36
 
37 37
     \begin{center}
38
-      \includegraphics[width=5cm]{img/logo-fsf}
38
+      \includegraphics[width=5cm]{img/logo-fsf.pdf}
39 39
     \par\end{center}
40 40
   \end{columns}
41 41
 \end{frame}
@@ -79,7 +79,7 @@
79 79
     \column{5cm}
80 80
 
81 81
     \begin{center}
82
-      \includegraphics[width=2cm]{img/F-Droid_Logo_2}
82
+      \includegraphics[width=2cm]{img/F-Droid_Logo_2.pdf}
83 83
     \par\end{center}
84 84
     \begin{center}
85 85
     \par\end{center}