From 89d1fd8b06c7bc3640c99eeb0227b25c73d5b43f Mon Sep 17 00:00:00 2001
From: Martin Mares <mj@ucw.cz>
Date: Thu, 26 Sep 2019 00:02:21 +0200
Subject: [PATCH] =?UTF-8?q?=C3=9Avod:=20Pojmenov=C3=A1n=C3=AD,=20Makerules?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 01-uvod/{y.tex => 01-uvod.tex} |  0
 01-uvod/Makefile               | 12 ++------
 01-uvod/x.md                   | 56 ----------------------------------
 Makerules                      |  8 +++++
 4 files changed, 10 insertions(+), 66 deletions(-)
 rename 01-uvod/{y.tex => 01-uvod.tex} (100%)
 delete mode 100644 01-uvod/x.md
 create mode 100644 Makerules

diff --git a/01-uvod/y.tex b/01-uvod/01-uvod.tex
similarity index 100%
rename from 01-uvod/y.tex
rename to 01-uvod/01-uvod.tex
diff --git a/01-uvod/Makefile b/01-uvod/Makefile
index a96cb54..3e3d727 100644
--- a/01-uvod/Makefile
+++ b/01-uvod/Makefile
@@ -1,11 +1,3 @@
-all: x.pdf y.pdf
+all: 01-uvod.pdf
 
-%.pdf: %.md
-	pandoc -f markdown -t beamer $< -o $@
-
-# Debugging output...
-%.tex: %.md
-	pandoc -f markdown -t beamer $< -o $@ -s
-
-y.pdf: y.tex
-	pdflatex $<
+include ../Makerules
diff --git a/01-uvod/x.md b/01-uvod/x.md
deleted file mode 100644
index 0f74509..0000000
--- a/01-uvod/x.md
+++ /dev/null
@@ -1,56 +0,0 @@
----
-title: 'Programování 1: Úvod do Pythonu'
-author: Martin Mareš
-institute: Katedra aplikované matematiky MFF UK
-date: ZS 2019
-theme: Warsaw
-toc: false
-indent: true
-header-includes: \setbeamerfont{title page}{family=\rmfamily}
----
-
-# Jak si nainstalovat Python
-
-- <http://www.python.org/>
-  - Python 3.x (pozor, ne 2.x)
-  - prostředí IDLE
-- <https://www.jetbrains.com/pycharm/>
-  - mnohem pokročilejší vývojové prostředí
-
-# Python jako kalkulačka
-
-	1+1
-	>>> 2
-
-	2+3*4+1
-	>>> 15
-
-	2+3 * 4+1
-	>>> 15
-
-	(2+3)*(4+1)
-	>>> 25
-
-	2**10
-	>>> 1024
-
-	2**100
-	>>> 1267650600228229401496703205376
-
-# ZZZ
-
-## Nadpis
-
-	aaa
-	bbb
-		ccc
-
-bbb
-
-aaa
-
-# Druhý slajd
-
-xyzzy
-
-# Třetí slajd
diff --git a/Makerules b/Makerules
new file mode 100644
index 0000000..b3d45c3
--- /dev/null
+++ b/Makerules
@@ -0,0 +1,8 @@
+export SHELL=/bin/bash
+
+%.pdf: %.tex
+	pdflatex $<
+
+clean::
+	rm -f *.{aux,log,nav,out,snm,toc,vrb}
+	rm -f *.pdf
-- 
GitLab