From 272939ce9e2e74dc9cb0a95550caf762a95b7ab3 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 14 Jan 2015 22:32:23 +0000 Subject: GNUmakefile: publish examples on the site, too --- GNUmakefile | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'GNUmakefile') diff --git a/GNUmakefile b/GNUmakefile index 6b9ee5e..4c828f1 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -1,4 +1,15 @@ all:: RSYNC_DEST := bogomips.org:/srv/bogomips/mogilefs-client rfpackage := mogilefs-client + +ex := $(shell git ls-files examples/) +doc_ex := $(addprefix doc/, $(ex)) + +$(doc_ex): $(ex) + mkdir -p $(@D) + install -m 644 $< $@ + -touch -r $< $@ # GNU + include pkg.mk +doc:: + $(MAKE) $(doc_ex) -- cgit v1.2.3-24-ge0c7