summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMikhail Kobuk <[email protected]>2024-04-13 07:25:01 +0300
committerMikhail Kobuk <[email protected]>2024-04-13 07:25:01 +0300
commita7d18f81ac526cef6f5a1a9259e8f31d61a61f0c (patch)
treef2704c13d6ddbe381ace73e5b05872bec1b1d0f2 /Makefile
parent686e1a55b400b34cfb9c9808d73c8a456fcd7a46 (diff)
downloadlinux-labs-a7d18f81ac526cef6f5a1a9259e8f31d61a61f0c.tar.gz
linux-labs-a7d18f81ac526cef6f5a1a9259e8f31d61a61f0c.zip
update build system
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 1d93d28..eb2afa2 100644
--- a/Makefile
+++ b/Makefile
@@ -8,6 +8,7 @@ SRC_INTRO = index.md
OUT_INTRO = $(patsubst %.md,%.html, $(SRC_INTRO))
SRC = $(wildcard ./lab*)
SRC += $(SRC_INTRO)
+SITE_NAME=LinuxLabs
default: all
@@ -15,9 +16,9 @@ all: build
build: prerequisites
./build.sh "$(PANDOC)" "$(PD_FLAGS)" "$(PD_FORMAT)" $(SRC)
- mkdir -pv ./LinuxLabs
- ./mksite.sh $(SRC)
- tar -czvf LinuxLabs.tar.gz LinuxLabs/
+ mkdir -pv ./$(SITE_NAME)
+ ./mksite.sh $(SRC)
+ tar -czvf $(SITE_NAME).tar.gz $(SITE_NAME)/
standalone: prerequisites
./build.sh "$(PANDOC)" "$(PD_FLAGS) $(PD_STANDALONE)" "$(PD_FORMAT)" $(SRC)
@@ -25,9 +26,13 @@ standalone: prerequisites
clean:
rm -rf easy-pandoc-templates
rm -f ./*.html
+ rm -rf $(SITE_NAME)
+ rm -rf $(SITE_NAME).tar.gz
clear:
rm -f ./*.html
+ rm -rf $(SITE_NAME)
+ rm -rf $(SITE_NAME).tar.gz
prerequisites: easy-pandoc-templates $(SRC)