Added scraps to main target
Getty Ritter
9 years ago
1 | 1 | # The set of basic pages we want to generate |
2 | 2 | pages=$(OUTDIR)/quotes/index.html $(OUTDIR)/quips/index.html \ |
3 | 3 | $(OUTDIR)/links/index.html $(OUTDIR)/category/index.html \ |
4 |
$(OUTDIR)/ |
|
4 | $(OUTDIR)/scraps/index.html $(OUTDIR)/index.html | |
5 | 5 | |
6 | 6 | # The static files we just need to copy |
7 | 7 | static_tgt=$(OUTDIR)/static/jquery.js \ |
16 | 16 | quotes_src=$(wildcard $(DATADIR)/quotes/*) |
17 | 17 | quips_src=$(wildcard $(DATADIR)/quips/*) |
18 | 18 | links_src=$(wildcard $(DATADIR)/links/*) |
19 | scraps_src=$(wildcard $(DATADIR)/scraps/*) | |
19 | 20 | works_src=$(notdir $(wildcard $(DATADIR)/works/*/*)) |
20 | 21 | |
21 | 22 | # and figure out what the $(OUTDIR) file will be called by matching |
23 | 24 | quotes_tgt=$(quotes_src:$(DATADIR)/quotes/%=$(OUTDIR)/quotes/%/index.html) |
24 | 25 | quips_tgt=$(quips_src:$(DATADIR)/quips/%=$(OUTDIR)/quips/%/index.html) |
25 | 26 | links_tgt=$(links_src:$(DATADIR)/links/%=$(OUTDIR)/links/%/index.html) |
27 | scraps_tgt=$(scraps_src:$(DATADIR)/links/%=$(OUTDIR)/links/%/index.html) | |
26 | 28 | cats_tgt=$(cats_src:%=$(OUTDIR)/category/%/index.html) |
27 | 29 | |
28 | 30 | works_tgt=$(works_src:%=$(OUTDIR)/%/index.html) |
29 | 31 | |
30 | 32 | # ------------------------------------------------------------------------------ |
31 | 33 | |
32 |
all: $(pages) $(quotes_tgt) $(quips_tgt) $(links_tgt) $(works_tgt) |
|
34 | all: $(pages) $(quotes_tgt) $(quips_tgt) $(links_tgt) $(works_tgt) $(scraps_tgt) \ | |
33 | 35 | $(cats_tgt) $(static_tgt) |
34 | 36 | |
35 | 37 | # ------------------------------------------------------------------------------ |