a lot of stylin and a little scriptin
This commit is contained in:
parent
3635f04e8f
commit
64e00f83f1
16 changed files with 555 additions and 82 deletions
30
Makefile
30
Makefile
|
@ -5,30 +5,44 @@ INFONAME = info.yaml
|
|||
|
||||
# SMALL = thumbnails, MED = single pages (link to full size)
|
||||
SMALL := 200
|
||||
MED := 1200
|
||||
MED := 1000
|
||||
|
||||
MAKEPAGES = $(TMPDIR)/make-pages
|
||||
|
||||
YAMLS != find $(DATADIR) -iname "*.yaml"
|
||||
YAMLS != find $(DATADIR) -name $(INFONAME)
|
||||
|
||||
all: make-pages $(BUILDDIR)/index.html
|
||||
SCRIPTS := $(wildcard script/*.js)
|
||||
STYLES := $(wildcard style/*.css style/*.png)
|
||||
FONTS := $(shell find fonts \
|
||||
-iname '*.eot' -or -iname '*.svg' -or \
|
||||
-iname '*.ttf' -or -iname '*.woff' -or \
|
||||
-iname '*.woff2' -or -iname '*.css')
|
||||
STATIC := $(SCRIPTS) $(STYLES) $(FONTS)
|
||||
BSTATIC := $(patsubst %,$(BUILDDIR)/%,$(STATIC))
|
||||
|
||||
all: make-pages $(BUILDDIR)/index.html $(BSTATIC)
|
||||
|
||||
$(BUILDDIR)/%: %
|
||||
echo "[copy] "$@
|
||||
mkdir -p $(dir $@)
|
||||
cp $< $@
|
||||
|
||||
$(BUILDDIR)/index.html: $(DATADIR)/galleries.yaml $(MAKEPAGES)
|
||||
echo "[index]"
|
||||
mkdir -p $(dir $@)
|
||||
$(MAKEPAGES) index $< -o $@
|
||||
$(MAKEPAGES) $(MPFLAGS) index $< -o $@
|
||||
|
||||
$(MAKEPAGES): make-pages
|
||||
$(MAKEPAGES): make-pages/*.hs make-pages/make-pages.cabal
|
||||
echo "[make-pages]"
|
||||
mkdir -p $(dir $@)
|
||||
cabal v2-build all -O0
|
||||
cabal v2-build all -O0 -j
|
||||
find dist-newstyle -name make-pages -executable -type f \
|
||||
-exec cp {} $@ \;
|
||||
|
||||
$(TMPDIR)/galleries.d: $(DATADIR)/galleries.yaml $(MAKEPAGES)
|
||||
echo "[gallery-deps] "$@
|
||||
echo "[deps] "$@
|
||||
mkdir -p $(dir $@)
|
||||
$(MAKEPAGES) depend-gallery $< -o $@ \
|
||||
$(MAKEPAGES) $(MPFLAGS) depend-gallery $< -o $@ \
|
||||
-B $(BUILDDIR) -D $(DATADIR) -T $(TMPDIR) -I $(INFONAME)
|
||||
|
||||
-include $(TMPDIR)/galleries.d
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue