Added target for static files
Getty Ritter
9 years ago
7 | 7 | pages=$(OUTDIR)/quotes/index.html $(OUTDIR)/quips/index.html \ |
8 | 8 | $(OUTDIR)/links/index.html $(OUTDIR)/category/index.html \ |
9 | 9 | $(OUTDIR)/index.html |
10 | ||
11 | static_tgt=$(OUTDIR)/static/jquery.js \ | |
12 | $(OUTDIR)/static/main.css \ | |
13 | $(OUTDIR)/static/quotes.js | |
10 | 14 | |
11 | 15 | # We find all the stuff we want to generate... |
12 | 16 | quotes_src=$(wildcard $(DATADIR)/quotes/*) |
35 | 39 | |
36 | 40 | |
37 | 41 | all: $(pages) $(quotes_tgt) $(quips_tgt) $(links_tgt) $(works_tgt) \ |
38 |
$(cats_tgt) |
|
42 | $(cats_tgt) $(static_tgt) | |
39 | 43 | |
40 | 44 | # A lot of these are boringly similar: probably should come up with a way of abstracting |
41 | 45 | # this common pattern, but, y'know, Make... |
79 | 83 | $(OUTDIR)/index.html: $(OUTDIR)/index/index.html |
80 | 84 | cp $< $@ |
81 | 85 | |
86 | $(OUTDIR)/static/%: static/% | |
87 | mkdir -p `dirname $@` | |
88 | cp $< $@ | |
89 | ||
82 | 90 | clean: |
83 | 91 | rm -rf $(OUTDIR) |