summaryrefslogblamecommitdiffstats
path: root/Makefile
blob: b75bf659bd8340de9e0e0a91666e367c39907e83 (plain) (tree)
1
2
3
4
5
6
7
8
9
10



                                                                           
        
                     

                                              

                                
                                         
            
                      
dirs := $(subst " . "," ",$(subst /Makefile,,$(shell find -name Makefile)))
pdfs := $(subst .md,.pdf,$(shell find -name *.md))
.PHONY: clean default
default: $(dirs) $(pdfs)
$(dirs):
	$(MAKE) -C $@
%.pdf: %.md
	pandoc -V geometry:margin=1cm $< -o $@
clean:
	for dir in $(dirs); do \
		$(MAKE) -C $$dir clean; \
	done
	rm -rf $(pdfs)