From 987ce1d3cc511234b0ae8faa52f18a6245a8341b Mon Sep 17 00:00:00 2001 From: jao Date: Wed, 3 May 2017 00:27:42 +0200 Subject: Avoiding travis badget in the web page --- web/Makefile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'web') diff --git a/web/Makefile b/web/Makefile index e0a14ab..cb08fda 100644 --- a/web/Makefile +++ b/web/Makefile @@ -1,9 +1,16 @@ -index = ../readme.md +index.src = ../readme.md +index = readme.md releases = ../news.md css = xmobar.css images = xmobar-sawfish.png xmobar-xmonad.png remote = community.haskell.org:/srv/projects/xmobar/ htmls = index.html releases.html +title = % xmobar - a minimalistic status bar + +default: index.html + +$(index): $(index.src) + @sed -E "s/^\\[!\\[Build .+/$(title)/1" $(index.src) > $(index) index.html: releases.html $(index) $(css) pandoc -f markdown -t html -c $(css) --toc -N -s \ @@ -22,4 +29,4 @@ upload-pages: $(htmls) upload: upload-images upload-pages clean: - rm -f $(htmls) + rm -f $(htmls) $(index) -- cgit v1.2.3