Skip to content

Instantly share code, notes, and snippets.

@4rzael
Last active December 21, 2015 15:56
Show Gist options
  • Save 4rzael/3835eee79d8cb61a9764 to your computer and use it in GitHub Desktop.
Save 4rzael/3835eee79d8cb61a9764 to your computer and use it in GitHub Desktop.
Rapport de stage chez Ants.
ODT_NAME = stageTEK2_2019_agor_m.odt
PDF_NAME = stageTEK2_2019_agor_m.pdf
MD_NAME = rapport_de_stage.md
$(NAME): pdf
pdf:
@echo 'Generating pdf file'
@echo 'Do not forget to close libre office if it does not work'
@(test -e $(PDF_NAME) && cp $(PDF_NAME) $(PDF_NAME).old -f) || echo 'no pdf file to save'
@libreoffice --headless --convert-to pdf $(ODT_NAME)
odt:
@echo 'Generating odt file'
@(test -e $(ODT_NAME) && cp $(ODT_NAME) $(ODT_NAME).old -f) || echo 'no odt file to save'
@pandoc -s -f markdown -t odt -o $(ODT_NAME) $(MD_NAME)
all: odt pdf
clean:
@rm *.pdf -f
fclean: clean
@rm *.odt -f
.PHONY: $(NAME) pdf odt all clean fclean
This file has been truncated, but you can view the full file.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment