27 lines
		
	
	
		
			440 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			440 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
# Update this for new files
 | 
						|
files = perks.html spelllist.html main.html creatures.html\
 | 
						|
		magical_items.html calc.html effect.html\
 | 
						|
		test.html test.js
 | 
						|
 | 
						|
 | 
						|
OUTDIR=html
 | 
						|
 | 
						|
LIST=$(addprefix html/, $(files))
 | 
						|
 | 
						|
$(OUTDIR)/%.html: %.md | $(OUTDIR)
 | 
						|
	pandoc $< -f markdown -t html -s -o $@
 | 
						|
 | 
						|
$(OUTDIR)/%.js: %.js | $(OUTDIR)
 | 
						|
	cp $< $@
 | 
						|
 | 
						|
$(OUTDIR)/%.html: %.html | $(OUTDIR)
 | 
						|
	cp $< $@
 | 
						|
 | 
						|
all: $(LIST)
 | 
						|
 | 
						|
$(OUTDIR):
 | 
						|
	mkdir -p $(OUTDIR)
 | 
						|
 | 
						|
clean:
 | 
						|
	rm -r $(OUTDIR)
 |