|
|
@ -2,7 +2,7 @@ source := src
|
|
|
|
output := out
|
|
|
|
output := out
|
|
|
|
sources := $(sort $(wildcard $(source)/*.md))
|
|
|
|
sources := $(sort $(wildcard $(source)/*.md))
|
|
|
|
lang := es-ES
|
|
|
|
lang := es-ES
|
|
|
|
target := rasalhague_bitacora
|
|
|
|
target := LinuxMintUlyana
|
|
|
|
|
|
|
|
|
|
|
|
# pdf control, other fonts could be:
|
|
|
|
# pdf control, other fonts could be:
|
|
|
|
# 'Liberation Sans', 'Liberation Mono'
|
|
|
|
# 'Liberation Sans', 'Liberation Mono'
|
|
|
@ -21,10 +21,10 @@ pdf_opt := -t markdown-smart --standalone --variable geometry:a4paper --variable
|
|
|
|
## Recipes for targets
|
|
|
|
## Recipes for targets
|
|
|
|
|
|
|
|
|
|
|
|
# These targets are not files
|
|
|
|
# These targets are not files
|
|
|
|
.PHONY: clean pdf latex mediawiki epub github
|
|
|
|
.PHONY: clean pdf latex mediawiki dokuwiki epub odt docx github
|
|
|
|
|
|
|
|
|
|
|
|
# all -- This target try to build every thing
|
|
|
|
# all -- This target try to build every thing
|
|
|
|
all: pdf latex mediawiki epub github docx
|
|
|
|
all: pdf latex mediawiki dokuwiki epub odt github
|
|
|
|
|
|
|
|
|
|
|
|
# reset -- This target deletes every target and then tries to build everithing
|
|
|
|
# reset -- This target deletes every target and then tries to build everithing
|
|
|
|
reset: clean all
|
|
|
|
reset: clean all
|
|
|
@ -52,6 +52,13 @@ $(output)/$(target).mw: $(sources)
|
|
|
|
--output=$(output)/$(target).mw \
|
|
|
|
--output=$(output)/$(target).mw \
|
|
|
|
$(sources)
|
|
|
|
$(sources)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# 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 \
|
|
|
|
|
|
|
|
$(sources)
|
|
|
|
|
|
|
|
|
|
|
|
#epub -- buid epub file into output directory
|
|
|
|
#epub -- buid epub file into output directory
|
|
|
|
epub: $(output)/$(target).epub $(sources)
|
|
|
|
epub: $(output)/$(target).epub $(sources)
|
|
|
|
$(output)/$(target).epub: $(sources)
|
|
|
|
$(output)/$(target).epub: $(sources)
|
|
|
@ -84,6 +91,8 @@ clean:
|
|
|
|
rm -f $(output)/*.pdf
|
|
|
|
rm -f $(output)/*.pdf
|
|
|
|
rm -f $(output)/*.tex
|
|
|
|
rm -f $(output)/*.tex
|
|
|
|
rm -f $(output)/*.mw
|
|
|
|
rm -f $(output)/*.mw
|
|
|
|
|
|
|
|
rm -f $(output)/*.dw
|
|
|
|
|
|
|
|
rm -f $(output)/*.epub
|
|
|
|
rm -f $(output)/*.odt
|
|
|
|
rm -f $(output)/*.odt
|
|
|
|
rm -f $(output)/*.docx
|
|
|
|
rm -f $(output)/*.docx
|
|
|
|
rm -r README.md
|
|
|
|
rm -r README.md
|
|
|
|