From 8befecfca01c0675ed5c645bc280f2dba47f8cba Mon Sep 17 00:00:00 2001 From: Manuel Traut Date: Wed, 13 Oct 2010 16:56:37 +0200 Subject: simplify makefiles Signed-off-by: Manuel Traut --- linux-basics/Makefile | 2 +- linux-basics/boot-process/Makefile | 8 ++++---- linux-basics/filesystem-structure/Makefile | 8 ++++---- linux-basics/important-tools/Makefile | 5 ++++- linux-basics/linux-mm-basics/Makefile | 8 ++++---- linux-basics/sh-programming/Makefile | 8 ++++---- linux-basics/what-is-linux/Makefile | 8 ++++---- 7 files changed, 25 insertions(+), 22 deletions(-) (limited to 'linux-basics') diff --git a/linux-basics/Makefile b/linux-basics/Makefile index 10d4fc6..72cada2 100644 --- a/linux-basics/Makefile +++ b/linux-basics/Makefile @@ -1,4 +1,4 @@ -SUBDIRS = boot-process filesystem-structure important-tools linux-processes sh-programming what-is-linux linux-mm-basics +SUBDIRS = `ls -1` all clean:: for dir in $(SUBDIRS) ; do \ diff --git a/linux-basics/boot-process/Makefile b/linux-basics/boot-process/Makefile index 46df0b2..4663d52 100644 --- a/linux-basics/boot-process/Makefile +++ b/linux-basics/boot-process/Makefile @@ -1,8 +1,8 @@ all: - pdflatex pres_boot-process_de.tex - pdflatex hints_boot-process_de.tex - pdflatex handout_boot-process_de.tex - pdflatex handout_boot-process_de.tex + for pdf in `ls -1 *.tex` ; do \ + pdflatex $$pdf; \ + pdflatex $$pdf; \ + done clean: rm -f *.aux *.log *.pdf *.log *.snm *.toc *.vrb *.nav *.out diff --git a/linux-basics/filesystem-structure/Makefile b/linux-basics/filesystem-structure/Makefile index 1e609fd..4663d52 100644 --- a/linux-basics/filesystem-structure/Makefile +++ b/linux-basics/filesystem-structure/Makefile @@ -1,8 +1,8 @@ all: - pdflatex pres_file-system-structure_de.tex - pdflatex hints_file-system-structure_de.tex - pdflatex handout_file-system-structure_de.tex - pdflatex handout_file-system-structure_de.tex + for pdf in `ls -1 *.tex` ; do \ + pdflatex $$pdf; \ + pdflatex $$pdf; \ + done clean: rm -f *.aux *.log *.pdf *.log *.snm *.toc *.vrb *.nav *.out diff --git a/linux-basics/important-tools/Makefile b/linux-basics/important-tools/Makefile index ffcea55..4663d52 100644 --- a/linux-basics/important-tools/Makefile +++ b/linux-basics/important-tools/Makefile @@ -1,5 +1,8 @@ all: - pdflatex pres_important_tools_de.tex + for pdf in `ls -1 *.tex` ; do \ + pdflatex $$pdf; \ + pdflatex $$pdf; \ + done clean: rm -f *.aux *.log *.pdf *.log *.snm *.toc *.vrb *.nav *.out diff --git a/linux-basics/linux-mm-basics/Makefile b/linux-basics/linux-mm-basics/Makefile index 5a7cfbe..4663d52 100644 --- a/linux-basics/linux-mm-basics/Makefile +++ b/linux-basics/linux-mm-basics/Makefile @@ -1,8 +1,8 @@ all: - pdflatex pres_linux-mm-basics_en.tex - pdflatex hints_linux-mm-basics_en.tex - pdflatex handout_linux-mm-basics_en.tex - pdflatex handout_linux-mm-basics_en.tex + for pdf in `ls -1 *.tex` ; do \ + pdflatex $$pdf; \ + pdflatex $$pdf; \ + done clean: rm -f *.aux *.log *.pdf *.log *.snm *.toc *.vrb *.nav *.out diff --git a/linux-basics/sh-programming/Makefile b/linux-basics/sh-programming/Makefile index 325aad0..4663d52 100644 --- a/linux-basics/sh-programming/Makefile +++ b/linux-basics/sh-programming/Makefile @@ -1,8 +1,8 @@ all: - pdflatex pres_sh-programming_de.tex - pdflatex hints_sh-programming_de.tex - pdflatex handout_sh-programming_de.tex - pdflatex handout_sh-programming_de.tex + for pdf in `ls -1 *.tex` ; do \ + pdflatex $$pdf; \ + pdflatex $$pdf; \ + done clean: rm -f *.aux *.log *.pdf *.log *.snm *.toc *.vrb *.nav *.out diff --git a/linux-basics/what-is-linux/Makefile b/linux-basics/what-is-linux/Makefile index 84f91b4..4663d52 100644 --- a/linux-basics/what-is-linux/Makefile +++ b/linux-basics/what-is-linux/Makefile @@ -1,8 +1,8 @@ all: - pdflatex pres_what-is-linux_de.tex - pdflatex hints_what-is-linux_de.tex - pdflatex handout_what-is-linux_de.tex - pdflatex handout_what-is-linux_de.tex + for pdf in `ls -1 *.tex` ; do \ + pdflatex $$pdf; \ + pdflatex $$pdf; \ + done clean: rm -f *.aux *.log *.pdf *.log *.snm *.toc *.vrb *.nav *.out -- cgit v1.2.3