Makefile: Add README preview with Pandoc
This commit is contained in:
parent
095d5f6b7d
commit
2b6e24cd75
2 changed files with 18 additions and 1 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -1,2 +1,4 @@
|
||||||
*.swp
|
*.swp
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
README.html
|
||||||
|
pub.css
|
||||||
|
|
|
||||||
17
GNUmakefile
17
GNUmakefile
|
|
@ -11,14 +11,17 @@ ifeq ($(UNAME),Darwin)
|
||||||
/opt/local/etc/bashrc
|
/opt/local/etc/bashrc
|
||||||
PROFILE = .profile.mac
|
PROFILE = .profile.mac
|
||||||
INSTALL = ginstall
|
INSTALL = ginstall
|
||||||
|
OPEN = open
|
||||||
else ifeq ($(UNAME),FreeBSD)
|
else ifeq ($(UNAME),FreeBSD)
|
||||||
DEFAULT_TARGETS += $(HOME)/.bashrc
|
DEFAULT_TARGETS += $(HOME)/.bashrc
|
||||||
PROFILE = .profile
|
PROFILE = .profile
|
||||||
INSTALL = ginstall
|
INSTALL = ginstall
|
||||||
|
OPEN = xdg-open
|
||||||
else
|
else
|
||||||
DEFAULT_TARGETS += $(HOME)/.bashrc
|
DEFAULT_TARGETS += $(HOME)/.bashrc
|
||||||
PROFILE = .profile
|
PROFILE = .profile
|
||||||
INSTALL = install
|
INSTALL = install
|
||||||
|
OPEN = xdg-open
|
||||||
endif
|
endif
|
||||||
|
|
||||||
install: $(DEFAULT_TARGETS)
|
install: $(DEFAULT_TARGETS)
|
||||||
|
|
@ -57,4 +60,16 @@ $(HOME)/.vim/bundle:
|
||||||
$(HOME)/.vim/bundle/Vundle.vim: $(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
|
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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue