Skip to content

Commit 1a9b3a4

Browse files
committed
update readme, fix a Makefile bug, change tex file name
1 parent 02256c7 commit 1a9b3a4

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
| 日期 | 主题 | 文件 |
1616
|------------|---------------------|-----------------------------------------------------------------------------------------------------------------------|
1717
| 2019-10-25 | 环境搭建和C语言入门 | [introduction.pdf](https://github.com/tangruize/programming-tutorial-2019/releases/download/slide_1/introduction.pdf) |
18-
| 2019-11-01 | 调试技巧, 函数和指针 | [function_array.pdf](https://github.com/tangruize/programming-tutorial-2019/releases/download/slide_2/function_array.pdf) |
18+
| 2019-11-01 | 调试技巧, 函数和数组 | [function_array.pdf](https://github.com/tangruize/programming-tutorial-2019/releases/download/slide_2/function_array.pdf) |
19+
| 2019-11-08 | 指针和动态内存 | [pointer_memory.pdf](https://github.com/tangruize/programming-tutorial-2019/releases/download/slide_3/pointer_memory.pdf) |
1920

2021
## [Tutorial](Tutorial)
2122

File renamed without changes.

Slides/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ FLAGS = -file-line-error -synctex=1 -interaction=nonstopmode
33
DIR ?=
44
VIEWER ?=
55

6+
CMD_SUFFIX = &
67
ifeq ($(DIR),)
78
AUTODIR = $(wildcard 201*)
89
else
@@ -14,7 +15,6 @@ else
1415
CMD_SUFFIX = ;
1516
else
1617
VIEWER = evince
17-
CMD_SUFFIX = &
1818
endif
1919
endif
2020
endif
@@ -23,7 +23,7 @@ TEX = $(filter-out $(wildcard $(AUTODIR:%=%/preamble.tex)),$(wildcard $(AUTODIR:
2323
PDF = $(TEX:.tex=.pdf)
2424

2525
slides: $(PDF)
26-
@if which "$(VIEWER)" > /dev/null; then $(CMD_PREFIX) $(VIEWER) $(PDF) $(CMD_SUFFIX) fi
26+
@if which "$(VIEWER)" &> /dev/null; then $(CMD_PREFIX) $(VIEWER) $(PDF) $(CMD_SUFFIX) fi
2727

2828
$(PDF): %.pdf: %.tex
2929
@cd $(dir $@) && latexmk -use-make -silent -xelatex $(FLAGS) $(notdir $(@:.pdf=.tex))

0 commit comments

Comments
 (0)