aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 18 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 6e9e402..96a0566 100644
--- a/Makefile
+++ b/Makefile
@@ -15,5 +15,22 @@ LDFLAGS=$(LDEXTRA) $(MIRAGE_LIBS) $(SNDFILE_LIBS)
all: $(PROJ)
+man: $(PROJ).1
+
+html: $(PROJ).html
+
test: all
- ./$(PROJ)
+ ./$(PROJ) test.cue
+
+push: all man html
+ git add $(PROJ).1 $(PROJ).html
+ git commit -m'auto-regenerate man/html pages'
+ git push
+
+$(PROJ).1: $(PROJ).rst
+ rst2man.py $(PROJ).rst > $(PROJ).1
+
+$(PROJ).html: $(PROJ).rst
+ rst2html4.py $(PROJ).rst > $(PROJ).html
+
+.PHONY: all man html test push