Changed Makefile
This commit is contained in:
		
							
								
								
									
										26
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										26
									
								
								Makefile
									
									
									
									
									
								
							@@ -1,6 +1,26 @@
 | 
			
		||||
%.html: %.md
 | 
			
		||||
# 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 $@
 | 
			
		||||
 | 
			
		||||
ttrpg: perks.html spelllist.html test.html main.html creatures.html magical_items.html calc.html effect.html
 | 
			
		||||
$(OUTDIR)/%.js: %.js | $(OUTDIR)
 | 
			
		||||
	cp $< $@
 | 
			
		||||
 | 
			
		||||
all: ttrpg
 | 
			
		||||
$(OUTDIR)/%.html: %.html | $(OUTDIR)
 | 
			
		||||
	cp $< $@
 | 
			
		||||
 | 
			
		||||
all: $(LIST)
 | 
			
		||||
 | 
			
		||||
$(OUTDIR):
 | 
			
		||||
	mkdir -p $(OUTDIR)
 | 
			
		||||
 | 
			
		||||
clean:
 | 
			
		||||
	rm -r $(OUTDIR)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user