From a078abfcfaf9ea87bd2f9223f4c8b4f6b76004ab Mon Sep 17 00:00:00 2001 From: Mikhail Kobuk Date: Sat, 13 Apr 2024 07:17:27 +0300 Subject: updated build system --- Makefile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index bb3ccd3..1d93d28 100644 --- a/Makefile +++ b/Makefile @@ -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: -- cgit v1.2.3-70-g09d2