gdritter repos lib-static / ee4612f
Added target for static files Getty Ritter 9 years ago
1 changed file(s) with 9 addition(s) and 1 deletion(s). Collapse all Expand all
77 pages=$(OUTDIR)/quotes/index.html $(OUTDIR)/quips/index.html \
88 $(OUTDIR)/links/index.html $(OUTDIR)/category/index.html \
99 $(OUTDIR)/index.html
10
11 static_tgt=$(OUTDIR)/static/jquery.js \
12 $(OUTDIR)/static/main.css \
13 $(OUTDIR)/static/quotes.js
1014
1115 # We find all the stuff we want to generate...
1216 quotes_src=$(wildcard $(DATADIR)/quotes/*)
3539
3640
3741 all: $(pages) $(quotes_tgt) $(quips_tgt) $(links_tgt) $(works_tgt) \
38 $(cats_tgt)
42 $(cats_tgt) $(static_tgt)
3943
4044 # A lot of these are boringly similar: probably should come up with a way of abstracting
4145 # this common pattern, but, y'know, Make...
7983 $(OUTDIR)/index.html: $(OUTDIR)/index/index.html
8084 cp $< $@
8185
86 $(OUTDIR)/static/%: static/%
87 mkdir -p `dirname $@`
88 cp $< $@
89
8290 clean:
8391 rm -rf $(OUTDIR)