diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 27 |
1 files changed, 18 insertions, 9 deletions
@@ -1,13 +1,17 @@ -all: public/index.html -all: public/style.css -all: public/jarmon-style/jquerytools.tabs.tabs-no-images.css -all: public/jarmon-style/style.css +srcs = $(shell find public-src -not -type d) +outs = $(patsubst public-src/%,public/%,\ + $(patsubst %.scss,%.css,\ + $(patsubst %.gen,%,\ + $(srcs)))) +all: $(outs) +.PHONY: all NET-%: date > $@ .DELETE_ON_ERROR: .SECONDARY: +.PHONY: FORCE # bin/ @@ -20,9 +24,16 @@ bin/%: bin-src/% # public/ +# Normal pattern rules public/%: public-src/% @mkdir -p '$(@D)' ln -srTf '$<' '$@' +public/%: public/%.gen + $^ > $@ +public/%.css: public/%.scss + scss $< $@ + +# Specific stuff public/index.html: public/tls.html.part public/crtsh.html.part public/diff.html.part public/jarmon.html.in @@ -41,8 +52,6 @@ public/tls.html.part public/crtsh.html.part public/diff.html.part: \ public/%.html.part: public/%.pem bin/%-pem2html bin/$*-pem2html < $< > $@ -public/%: public/%.gen - $^ > $@ - -public/%.css: public/%.scss - scss $< $@ +public-src/jarmon-depenencies: jarmon/docs/examples/assets/js/dependencies.js +jarmon/docs/examples/assets/js/dependencies.js: FORCE + $(MAKE) -C jarmon docs/examples/assets/js/dependencies.js |