Installation guide for my Linux Mint Uma
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

107 lines
2.8 KiB

source := src
output := out
sources := $(sort $(wildcard $(source)/*.md))
lang := es-ES
target := LinuxMintUlyana
# pdf control, other fonts could be:
# 'Liberation Sans', 'Liberation Mono'
# 'Source Sans Pro', 'Source Code Pro'
# 'Arial'
mainfont := 'Ubuntu'
monofont := 'Ubuntu Mono'
pdf_opt := --standalone \
--variable geometry:a4paper \
--variable lang=$(lang) \
--variable mainfont=$(mainfont) \
--variable monofont=$(monofont) \
--variable fontsize='12pt' \
--variable colorlinks \
--toc \
--number-sections \
--from=markdown \
--to=latex \
--pdf-engine=xelatex \
## Recipes for targets
# These targets are not files
.PHONY: clean pdf latex mediawiki dokuwiki epub odt docx github
# all -- This target try to build every thing
all: pdf latex mediawiki dokuwiki epub odt github
# reset -- This target deletes every target and then tries to build everithing
reset: clean all
# pdf -- buid pdf into output directory
pdf: $(output)/$(target).pdf $(sources)
$(output)/$(target).pdf: $(sources)
pandoc $(pdf_opt) \
--output=$(output)/$(target).pdf \
# latex -- buid latex file into output directory
latex: $(output)/$(target).tex $(sources)
$(output)/$(target).tex: $(sources)
pandoc $(pdf_opt) \
--output=$(output)/$(target).tex \
# mediawiki -- buid mediawiki file into output directory
mediawiki: $(output)/$(target).mw $(sources)
$(output)/$(target).mw: $(sources)
pandoc --from markdown --to mediawiki \
--output=$(output)/$(target).mw \
# dokuwiki -- buid dokuwiki file into output directory
dokuwiki: $(output)/$(target).dw $(sources)
$(output)/$(target).dw: $(sources)
pandoc --from markdown --to dokuwiki \
--output=$(output)/$(target).dw \
#epub -- buid epub file into output directory
epub: $(output)/$(target).epub $(sources)
$(output)/$(target).epub: $(sources)
pandoc --from markdown --to epub \
--output=$(output)/$(target).epub \
#odt -- buid odt file into output directory
odt: $(output)/$(target).odt $(sources)
$(output)/$(target).odt: $(sources)
pandoc --from markdown --to odt \
--output=$(output)/$(target).odt \
#docx -- buid docx file into output directory
docx: $(output)/$(target).docx $(sources)
$(output)/$(target).docx: $(sources)
pandoc --from markdown --to docx \
--output=$(output)/$(target).docx \
# github -- buid github file into repo root directory
github: $(sources) $(sources)
pandoc --from markdown --to gfm \ \
-rm -f $(output)/*.pdf
-rm -f $(output)/*.tex
-rm -f $(output)/*.mw
-rm -f $(output)/*.dw
-rm -f $(output)/*.epub
-rm -f $(output)/*.odt
-rm -f $(output)/*.docx
-rm -r