summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMikhail Kobuk <[email protected]>2024-04-13 07:17:27 +0300
committerMikhail Kobuk <[email protected]>2024-04-13 07:17:27 +0300
commita078abfcfaf9ea87bd2f9223f4c8b4f6b76004ab (patch)
treee399b774d2c9d29a1f3818dedba18988d7c5c6e5 /Makefile
parenta288b29ddc37eefeebf41ef25ec7cd60879e3c75 (diff)
downloadlinux-labs-a078abfcfaf9ea87bd2f9223f4c8b4f6b76004ab.tar.gz
linux-labs-a078abfcfaf9ea87bd2f9223f4c8b4f6b76004ab.zip
updated build system
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 10 insertions, 1 deletions
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: