tCleanup .gitignore / config.mk - monochromatic - monochromatic blog: http://blog.z3bra.org
(HTM) git clone git://z3bra.org/monochromatic
(DIR) Log
(DIR) Files
(DIR) Refs
---
(DIR) commit fc412aa6f24a6fc7ed8c1b34dc228e8276ccfa49
(DIR) parent 52f9e7a3868847549636ab448882097e1bdba81c
(HTM) Author: Willy Goiffon <dev@z3bra.org>
Date: Mon, 23 Dec 2019 17:25:53 +0100
Cleanup .gitignore / config.mk
Diffstat:
M .gitignore | 9 +++------
M Makefile | 10 +++++-----
M config.mk | 2 +-
3 files changed, 9 insertions(+), 12 deletions(-)
---
(DIR) diff --git a/.gitignore b/.gitignore
t@@ -2,9 +2,6 @@
index.txt
*.html
*.ico
-img/*
-vid/*
-rss/*.xml
-css/fonts/*
-*.tar.gz
-TODO
+*.tar.bz2
+rss/*
+.webroot/*
(DIR) diff --git a/Makefile b/Makefile
t@@ -1,11 +1,11 @@
include config.mk
-.PHONY: all clean
+.PHONY: all install clean
.SUFFIXES: .txt .html
all: $(FEEDS) $(EXTRA) $(PAGES)
-$(NAME).tbz: $(FEEDS) $(PAGES) $(EXTRA)
+$(NAME).tar.bz2: $(FEEDS) $(PAGES) $(EXTRA)
tar -cvjf $@ $(PAGES) $(EXTRA) $(FEEDS)
index.txt:
t@@ -18,9 +18,9 @@ $(FEEDS): index.txt
.txt.html:
$(MD) $< | cat $(HEADER) - $(FOOTER) > $@
-install: $(NAME).tbz
+install: $(NAME).tar.bz2
mkdir -p $(PREFIX)
- tar -xjf $(NAME).tbz -C $(PREFIX)
+ tar -xjf $(NAME).tar.bz2 -C $(PREFIX)
clean:
- rm -f $(PAGES) $(FEEDS) $(NAME).tbz index.txt
+ rm -f $(PAGES) $(FEEDS) $(NAME).tar.bz2 index.txt
(DIR) diff --git a/config.mk b/config.mk
t@@ -1,7 +1,7 @@
MD = markdown
NAME = monochromatic
-PREFIX = /var/www/htdocs/monochromatic
+PREFIX = .webroot
HEADER = header.tmpl
FOOTER = footer.tmpl