Makefile: Add README preview with Pandoc

This commit is contained in:
Andrea Rogers 2024-04-14 23:53:09 -05:00
commit 2b6e24cd75
2 changed files with 18 additions and 1 deletions

View file

@ -11,14 +11,17 @@ ifeq ($(UNAME),Darwin)
/opt/local/etc/bashrc
PROFILE = .profile.mac
INSTALL = ginstall
OPEN = open
else ifeq ($(UNAME),FreeBSD)
DEFAULT_TARGETS += $(HOME)/.bashrc
PROFILE = .profile
INSTALL = ginstall
OPEN = xdg-open
else
DEFAULT_TARGETS += $(HOME)/.bashrc
PROFILE = .profile
INSTALL = install
OPEN = xdg-open
endif
install: $(DEFAULT_TARGETS)
@ -57,4 +60,16 @@ $(HOME)/.vim/bundle:
$(HOME)/.vim/bundle/Vundle.vim: $(HOME)/.vim/bundle
git clone https://github.com/VundleVim/Vundle.vim.git $@ || cd $@; git pull; exit 0
.PHONY: aliases profileds
.PHONY: aliases profileds README
### README #####################################################################
pub.css:
wget https://github.com/manuelp/pandoc-stylesheet/raw/acac36b976966f76544176161ba826d519b6f40c/pub.css
# Requires Pandoc to be installed
README.html: README.md pub.css
pandoc $< -s -c pub.css -o README.html
$(OPEN) README.html
README: README.html