From 1a9b3a4a47c09fc3811a97ffeca2a36427a735a6 Mon Sep 17 00:00:00 2001 From: Ruize Tang <1466040111@qq.com> Date: Fri, 8 Nov 2019 22:53:59 +0800 Subject: [PATCH] update readme, fix a Makefile bug, change tex file name --- README.md | 3 ++- .../{Pointer_Memory.tex => pointer_memory.tex} | 0 Slides/Makefile | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) rename Slides/2019-11-08_Pointer_Memory/{Pointer_Memory.tex => pointer_memory.tex} (100%) diff --git a/README.md b/README.md index 1c140fa..214db7d 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,8 @@ | 日期 | 主题 | 文件 | |------------|---------------------|-----------------------------------------------------------------------------------------------------------------------| | 2019-10-25 | 环境搭建和C语言入门 | [introduction.pdf](https://github.com/tangruize/programming-tutorial-2019/releases/download/slide_1/introduction.pdf) | -| 2019-11-01 | 调试技巧, 函数和指针 | [function_array.pdf](https://github.com/tangruize/programming-tutorial-2019/releases/download/slide_2/function_array.pdf) | +| 2019-11-01 | 调试技巧, 函数和数组 | [function_array.pdf](https://github.com/tangruize/programming-tutorial-2019/releases/download/slide_2/function_array.pdf) | +| 2019-11-08 | 指针和动态内存 | [pointer_memory.pdf](https://github.com/tangruize/programming-tutorial-2019/releases/download/slide_3/pointer_memory.pdf) | ## [Tutorial](Tutorial) diff --git a/Slides/2019-11-08_Pointer_Memory/Pointer_Memory.tex b/Slides/2019-11-08_Pointer_Memory/pointer_memory.tex similarity index 100% rename from Slides/2019-11-08_Pointer_Memory/Pointer_Memory.tex rename to Slides/2019-11-08_Pointer_Memory/pointer_memory.tex diff --git a/Slides/Makefile b/Slides/Makefile index 043bd97..49cfee1 100644 --- a/Slides/Makefile +++ b/Slides/Makefile @@ -3,6 +3,7 @@ FLAGS = -file-line-error -synctex=1 -interaction=nonstopmode DIR ?= VIEWER ?= +CMD_SUFFIX = & ifeq ($(DIR),) AUTODIR = $(wildcard 201*) else @@ -14,7 +15,6 @@ else CMD_SUFFIX = ; else VIEWER = evince - CMD_SUFFIX = & endif endif endif @@ -23,7 +23,7 @@ TEX = $(filter-out $(wildcard $(AUTODIR:%=%/preamble.tex)),$(wildcard $(AUTODIR: PDF = $(TEX:.tex=.pdf) slides: $(PDF) - @if which "$(VIEWER)" > /dev/null; then $(CMD_PREFIX) $(VIEWER) $(PDF) $(CMD_SUFFIX) fi + @if which "$(VIEWER)" &> /dev/null; then $(CMD_PREFIX) $(VIEWER) $(PDF) $(CMD_SUFFIX) fi $(PDF): %.pdf: %.tex @cd $(dir $@) && latexmk -use-make -silent -xelatex $(FLAGS) $(notdir $(@:.pdf=.tex))