Skip to content

Commit 112d000

Browse files
committed
New output directory.
1 parent 8eebf7c commit 112d000

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,29 @@
22

33
OPTIONS = -s --toc --toc-depth=2 --highlight-style haddock
44
SOURCE_NAME = Design_Patterns_In_Python
5-
OUTPUT_NAME = Design_Patterns_In_Python
5+
OUTPUT_NAME = Output/Design_Patterns_In_Python
66

77
#==============================================================================
88
all: $(OUTPUT_NAME).epub $(OUTPUT_NAME).pdf $(OUTPUT_NAME).html
99
@echo -e "All made"
1010

1111
#==============================================================================
1212
$(OUTPUT_NAME).html: $(SOURCE_NAME).md
13+
@mkdir -p Output
1314
@echo -e "Making html."
1415
pandoc $< $(OPTIONS) -o $@
1516
@echo -e "html made.\n"
1617

1718
#==============================================================================
1819
$(OUTPUT_NAME).pdf: $(SOURCE_NAME).md
20+
@mkdir -p Output
1921
@echo -e "Making pdf."
2022
pandoc $< $(OPTIONS) -o $@
2123
@echo -e "pdf made.\n"
2224

2325
#==============================================================================
2426
$(OUTPUT_NAME).epub: $(SOURCE_NAME).md
27+
@mkdir -p Output
2528
@echo -e "Making epub."
2629
pandoc $< $(OPTIONS) -o $@
2730
@echo -e "epub made.\n"

0 commit comments

Comments
 (0)