151d877c8fb8 — Jon Waltman tip 10 years ago
Add a Makefile
2 files changed, 29 insertions(+), 1 deletions(-)

M .hgignore
A => Makefile
M .hgignore +3 -1
@@ 1,3 1,5 @@ 
 .*~
 .*\.elc
-downloads/
+.*\.info
+.*\.tar
+pydoc-info-.*/

          
A => Makefile +26 -0
@@ 0,0 1,26 @@ 
+
+VERSION := $(shell perl -nlE '/^;; Version: (.*)/ && print $$1;' pydoc-info.el)
+
+DIST := pydoc-info-$(VERSION)
+
+
+all: info dist
+
+info:
+	cd docs && make info
+
+dist:
+	rm -rf $(DIST)/
+	mkdir $(DIST)
+	cp -t $(DIST) pydoc-info.el pydoc-info-pkg.el \
+	    docs/python.texi docs/python.info
+	( cd $(DIST) && \
+	    install-info python.info dir && \
+	    gzip python.texi && \
+	    gzip python.info )
+	tar cf $(DIST).tar $(DIST)
+
+clean:
+	-rm *.elc
+	-rm -rf $(DIST) $(DIST).tar
+	-cd docs && make clean