|
|
|
@ -19,15 +19,10 @@ include config.mk
@@ -19,15 +19,10 @@ include config.mk
|
|
|
|
|
DIRS := $(shell find $(SRCDIR)/pages/* -type d | sed 's/$(SRCDIR)\/pages/$(OUTDIR)/')
|
|
|
|
|
|
|
|
|
|
SRCPAGES := $(shell find $(SRCDIR)/pages/* -name '*.scm')
|
|
|
|
|
|
|
|
|
|
SRCSTYLES := $(shell find $(SRCDIR)/styles/* -name '*.scm')
|
|
|
|
|
OUTSTYLES := $(shell find $(SRCDIR)/styles/ -type f -name '*.scm' | sed 's/$(SRCDIR)\/styles/$(OUTDIR)/')
|
|
|
|
|
OUTSTYLES := $(OUTSTYLES:%.scm=%.css)
|
|
|
|
|
|
|
|
|
|
SRCJS := $(shell find $(SRCDIR)/scripts/* -name '*.js')
|
|
|
|
|
OUTJS := $(shell find $(SRCDIR)/scripts/ -type f -name '*.js' | sed 's/$(SRCDIR)\/scripts/$(OUTDIR)/')
|
|
|
|
|
|
|
|
|
|
all: $(OUTDIR) $(STATICDIR) pages $(OUTSTYLES) $(OUTJS) |
|
|
|
|
all: $(OUTDIR) $(STATICDIR) pages styles js |
|
|
|
|
|
|
|
|
|
pages: $(SRCPAGES) |
|
|
|
|
for page in $(SRCPAGES) ; do \
|
|
|
|
@ -36,10 +31,13 @@ pages: $(SRCPAGES)
@@ -36,10 +31,13 @@ pages: $(SRCPAGES)
|
|
|
|
|
> $$(echo $$page | sed 's/.*\/pages/dist/' | sed 's/scm/xhtml/') \
|
|
|
|
|
; done
|
|
|
|
|
|
|
|
|
|
$(OUTSTYLES): $(SRCSTYLES) |
|
|
|
|
$(SCHEME) $(SCHEMEFLAGS) $< > $@
|
|
|
|
|
styles: $(SRCSTYLES) |
|
|
|
|
for style in $(SRCSTYLES) ; do \
|
|
|
|
|
$(SCHEME) $(SCHEMEFLAGS) $$style \
|
|
|
|
|
> $$(echo $$style | sed 's/.*\/styles/dist/' | sed 's/scm/css/') \
|
|
|
|
|
; done
|
|
|
|
|
|
|
|
|
|
$(OUTJS): $(SRCJS) |
|
|
|
|
js: $(SRCJS) |
|
|
|
|
for script in $(SRCJS) ; do \
|
|
|
|
|
cp $$script $$(echo $$script | sed 's/.*\/scripts/dist/') \
|
|
|
|
|
; done
|
|
|
|
|