diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -4,14 +4,20 @@ PD_FORMAT=-f markdown -t html PD_STANDALONE=--standalone --embed-resources # SRC = $(wildcard ./lab*/*.md) +SRC_INTRO = index.md +OUT_INTRO = $(patsubst %.md,%.html, $(SRC_INTRO)) SRC = $(wildcard ./lab*) -SRC += Linux_labs_0_Introduction.md +SRC += $(SRC_INTRO) default: all all: build build: prerequisites + ./build.sh "$(PANDOC)" "$(PD_FLAGS)" "$(PD_FORMAT)" $(SRC) + mkdir -pv ./LinuxLabs + ./mksite.sh $(SRC) + tar -czvf LinuxLabs.tar.gz LinuxLabs/ standalone: prerequisites ./build.sh "$(PANDOC)" "$(PD_FLAGS) $(PD_STANDALONE)" "$(PD_FORMAT)" $(SRC) @@ -20,6 +26,9 @@ clean: rm -rf easy-pandoc-templates rm -f ./*.html +clear: + rm -f ./*.html + prerequisites: easy-pandoc-templates $(SRC) easy-pandoc-templates: |