about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2015-01-14 22:32:23 +0000
committerEric Wong <normalperson@yhbt.net>2015-01-14 22:32:23 +0000
commit272939ce9e2e74dc9cb0a95550caf762a95b7ab3 (patch)
tree0843e670d212bfc5889c0b957eec3a45be904003
parentb5fa71328e8871b3ab81a02a3d3166814798d10b (diff)
downloadmogilefs-client-272939ce9e2e74dc9cb0a95550caf762a95b7ab3.tar.gz
-rw-r--r--GNUmakefile11
1 files changed, 11 insertions, 0 deletions
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)