about summary refs log tree commit homepage
path: root/GNUmakefile
diff options
context:
space:
mode:
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/GNUmakefile b/GNUmakefile
new file mode 100644
index 0000000..06b2fe1
--- /dev/null
+++ b/GNUmakefile
@@ -0,0 +1,23 @@
+all::
+RSYNC_DEST := bogomips.org:/srv/bogomips/ruby-wordexp
+rfproject := qrp
+rfpackage := wordexp
+pkg_extra = doc/api.txt
+include pkg.mk
+
+check: test
+
+doc/api.txt: RI = ri -w 78 -f rdoc --no-pager -d doc/ri --no-standard-docs
+doc/api.txt: $(ext_src)
+        rdoc -r -o doc/ri $(ext_src)
+        (  $(RI) Wordexp; $(RI) 'Wordexp#wordexp' ) \
+         </dev/null | grep -v from.*doc/ri > $@+
+        mv $@+ $@
+
+doc::
+        $(MAKE) doc/api.txt
+
+RSYNC = rsync --exclude '*.html' --exclude '*.html.gz' \
+        --exclude images --exclude '*.css' --exclude '*.css.gz' \
+        --exclude created.* \
+        --exclude '*.ri' --exclude '*.ri.gz' --exclude ri