tMove utilities to their own directory - monochromatic - monochromatic blog: http://blog.z3bra.org
(HTM) git clone git://z3bra.org/monochromatic
(DIR) Log
(DIR) Files
(DIR) Refs
---
(DIR) commit 7aa0d9027793b88b5f70b1b328a7fcc0cb479024
(DIR) parent 72d62ecb5e04f6dab8805468aaa90470eded2ebc
(HTM) Author: Willy Goiffon <dev@z3bra.org>
Date: Thu, 26 Dec 2019 14:08:11 +0100
Move utilities to their own directory
Diffstat:
M Makefile | 15 ++++++++-------
M config.mk | 1 +
R feed.sed -> utils/feed.sed | 0
R genindex.sh -> utils/genindex.sh | 0
R validate.sh -> utils/validate.sh | 0
5 files changed, 9 insertions(+), 7 deletions(-)
---
(DIR) diff --git a/Makefile b/Makefile
t@@ -4,24 +4,25 @@ include config.mk
.SUFFIXES: .txt .html
all: $(FEEDS) $(EXTRA) $(PAGES)
-release: $(NAME).tar.bz2
+release: $(TARBALL)
-$(NAME).tar.bz2: $(FEEDS) $(PAGES) $(EXTRA)
- tar -cvjf $@ $(PAGES) $(EXTRA) $(FEEDS)
+$(TARBALL): $(FEEDS) $(PAGES) $(EXTRA)
+ tar -cjf $@ $(PAGES) $(EXTRA) $(FEEDS)
index.txt:
- sh ./genindex.sh > $@
+ sh utils/genindex.sh > $@
$(FEEDS): index.txt
mkdir -p `dirname $@`
- sed -Ef ./feed.sed < index.txt > $@
+ sed -Ef utils/feed.sed < index.txt > $@
.txt.html:
$(MD) $< | cat $(HEADER) - $(FOOTER) > $@
-install: $(NAME).tar.bz2
+install: $(TARBALL)
mkdir -p $(PREFIX)
tar -xjf $(NAME).tar.bz2 -C $(PREFIX)
clean:
- rm -f $(PAGES) $(FEEDS) $(NAME).tar.bz2 index.txt
+ rm -f $(PAGES) $(FEEDS) $(TARBALL) index.txt
+ rmdir `dirname $(FEEDS)`
(DIR) diff --git a/config.mk b/config.mk
t@@ -4,6 +4,7 @@ NAME = monochromatic
PREFIX = .webroot
HEADER = header.tmpl
FOOTER = footer.tmpl
+TARBALL = $(NAME).tar.bz2
PAGES = index.html \
2013/08/test-your-css.html \
(DIR) diff --git a/feed.sed b/utils/feed.sed
(DIR) diff --git a/genindex.sh b/utils/genindex.sh
(DIR) diff --git a/validate.sh b/utils/validate.sh