summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitignore15
-rw-r--r--Makefile10
-rw-r--r--ang/readings/.gitignore1
-rw-r--r--bio/.gitignore1
-rw-r--r--bio/Makefile8
-rw-r--r--fiz/.gitignore1
-rw-r--r--geo/.gitignore1
-rw-r--r--geo/Makefile7
-rw-r--r--kem/.gitignore1
-rw-r--r--kem/Makefile7
-rw-r--r--mat/.gitignore1
-rw-r--r--mat/predstavitev/.gitignore13
-rw-r--r--nem/.gitignore1
-rw-r--r--nem/Makefile9
-rw-r--r--slo/Makefile8
15 files changed, 25 insertions, 59 deletions
diff --git a/.gitignore b/.gitignore
index cba7efc..04b9811 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,16 @@
a.out
+*.pdf
+
+dokument.aux
+dokument.auxlock
+dokument.bcf
+dokument.log
+dokument.nav
+dokument.out
+dokument.pdf
+dokument.run.xml
+dokument.snm
+dokument.synctex.gz
+dokument.toc
+stderr.log
+stdout.log
diff --git a/Makefile b/Makefile
index 0dfb3ff..b75bf65 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,13 @@
-dirs := $(subst /Makefile,,$(wildcard */Makefile))
-.PHONY: clean default $(dirs)
-default: $(dirs)
+dirs := $(subst " . "," ",$(subst /Makefile,,$(shell find -name Makefile)))
+pdfs := $(subst .md,.pdf,$(shell find -name *.md))
+.PHONY: clean default
+default: $(dirs) $(pdfs)
$(dirs):
$(MAKE) -C $@
+%.pdf: %.md
+ pandoc -V geometry:margin=1cm $< -o $@
clean:
for dir in $(dirs); do \
$(MAKE) -C $$dir clean; \
done
+ rm -rf $(pdfs)
diff --git a/ang/readings/.gitignore b/ang/readings/.gitignore
index b296904..51f1737 100644
--- a/ang/readings/.gitignore
+++ b/ang/readings/.gitignore
@@ -1,2 +1 @@
-*.pdf
american_beauty.md
diff --git a/bio/.gitignore b/bio/.gitignore
deleted file mode 100644
index a136337..0000000
--- a/bio/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-*.pdf
diff --git a/bio/Makefile b/bio/Makefile
deleted file mode 100644
index cd9bb20..0000000
--- a/bio/Makefile
+++ /dev/null
@@ -1,8 +0,0 @@
-SHELL := /bin/bash
-pdfs := $(subst .md,.pdf,$(wildcard *.md))
-default: $(pdfs)
-%.pdf: %.md
- pandoc -V geometry:margin=1cm $< -o $@
-.PHONY: clean
-clean:
- rm -rf $(pdfs)
diff --git a/fiz/.gitignore b/fiz/.gitignore
deleted file mode 100644
index a136337..0000000
--- a/fiz/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-*.pdf
diff --git a/geo/.gitignore b/geo/.gitignore
deleted file mode 100644
index a136337..0000000
--- a/geo/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-*.pdf
diff --git a/geo/Makefile b/geo/Makefile
deleted file mode 100644
index 82d23f6..0000000
--- a/geo/Makefile
+++ /dev/null
@@ -1,7 +0,0 @@
-pdfs := $(subst .md,.pdf,$(wildcard *.md))
-default: $(pdfs)
-%.pdf: %.md
- pandoc -V geometry:margin=1cm $< -o $@
-.PHONY: clean
-clean:
- rm -rf $(pdfs)
diff --git a/kem/.gitignore b/kem/.gitignore
deleted file mode 100644
index a136337..0000000
--- a/kem/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-*.pdf
diff --git a/kem/Makefile b/kem/Makefile
deleted file mode 100644
index 82d23f6..0000000
--- a/kem/Makefile
+++ /dev/null
@@ -1,7 +0,0 @@
-pdfs := $(subst .md,.pdf,$(wildcard *.md))
-default: $(pdfs)
-%.pdf: %.md
- pandoc -V geometry:margin=1cm $< -o $@
-.PHONY: clean
-clean:
- rm -rf $(pdfs)
diff --git a/mat/.gitignore b/mat/.gitignore
deleted file mode 100644
index a136337..0000000
--- a/mat/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-*.pdf
diff --git a/mat/predstavitev/.gitignore b/mat/predstavitev/.gitignore
deleted file mode 100644
index 60b084d..0000000
--- a/mat/predstavitev/.gitignore
+++ /dev/null
@@ -1,13 +0,0 @@
-dokument.aux
-dokument.auxlock
-dokument.bcf
-dokument.log
-dokument.nav
-dokument.out
-dokument.pdf
-dokument.run.xml
-dokument.snm
-dokument.synctex.gz
-dokument.toc
-stderr.log
-stdout.log
diff --git a/nem/.gitignore b/nem/.gitignore
deleted file mode 100644
index a136337..0000000
--- a/nem/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-*.pdf
diff --git a/nem/Makefile b/nem/Makefile
index 97b50a9..df582ef 100644
--- a/nem/Makefile
+++ b/nem/Makefile
@@ -1,10 +1,7 @@
SHELL := /bin/bash
-pdfs := $(subst .md,.pdf,$(wildcard *.md))
-default: $(pdfs) unregelm.pdf
+.PHONY: clean default
+default: unregelm.pdf
unregelm.pdf:
tr --squeeze-repeats "\\t" "," < unregelm.txt | csv2md | cat - <(tail -n 2 ferien.txt) | pandoc -f markdown -V geometry:margin=1cm /dev/stdin -o unregelm.pdf
-%.pdf: %.md
- pandoc -V geometry:margin=1cm $< -o $@
-.PHONY: clean
clean:
- rm -rf $(pdfs) unregelm.pdf
+ rm -rf unregelm.pdf
diff --git a/slo/Makefile b/slo/Makefile
deleted file mode 100644
index cd9bb20..0000000
--- a/slo/Makefile
+++ /dev/null
@@ -1,8 +0,0 @@
-SHELL := /bin/bash
-pdfs := $(subst .md,.pdf,$(wildcard *.md))
-default: $(pdfs)
-%.pdf: %.md
- pandoc -V geometry:margin=1cm $< -o $@
-.PHONY: clean
-clean:
- rm -rf $(pdfs)