diff options
author | Mikhail Kobuk <[email protected]> | 2024-04-13 07:17:27 +0300 |
---|---|---|
committer | Mikhail Kobuk <[email protected]> | 2024-04-13 07:17:27 +0300 |
commit | a078abfcfaf9ea87bd2f9223f4c8b4f6b76004ab (patch) | |
tree | e399b774d2c9d29a1f3818dedba18988d7c5c6e5 /Makefile | |
parent | a288b29ddc37eefeebf41ef25ec7cd60879e3c75 (diff) | |
download | linux-labs-a078abfcfaf9ea87bd2f9223f4c8b4f6b76004ab.tar.gz linux-labs-a078abfcfaf9ea87bd2f9223f4c8b4f6b76004ab.zip |
updated build system
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: |