Last active
December 21, 2015 15:56
-
-
Save 4rzael/3835eee79d8cb61a9764 to your computer and use it in GitHub Desktop.
Rapport de stage chez Ants.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.~*# | |
*.old |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment