Created
January 6, 2014 18:18
-
-
Save AdamBrouwersHarries/8287044 to your computer and use it in GitHub Desktop.
An example makefile using wildcards and pattern substitution to compile a load of files of the same type
This file contains hidden or 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
CPP_FILES = $(wildcard *.markdown) | |
OBJ_FILES = $(patsubst %.markdown,%.pdf,$(CPP_FILES)) | |
%.pdf: %.markdown | |
pandoc -V geometry:margin=1in -S -o $@ $(patsubst %.pdf,%.markdown,$@) | |
all: $(OBJ_FILES) | |
clean: | |
rm -f *.pdf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment