aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTorsten Hilbrich <torsten.hilbrich@gmx.net>2004-10-02 08:31:00 +0200
committerTorsten Hilbrich <torsten@hilbrich.net>2011-08-27 20:47:38 +0200
commit73347f4e6674220348ec2294cde19ae25819986b (patch)
treec8f1ce6335973f531f22ebcc5146abda628b6211 /Makefile
parent988ccf5d91893fd5624f1ca6a8805a0ed31bd090 (diff)
Imported version 1.8.7 from tarball
fixed decoding problem when selecting dictionary (problem reported by Kuno Strassmann)
Diffstat (limited to 'Makefile')
-rwxr-xr-x[-rw-r--r--]Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index c16bf84..db7ad5f 100644..100755
--- a/Makefile
+++ b/Makefile
@@ -10,6 +10,14 @@ XEMACS-PACKAGE=$(PACKAGE)-$(VERSION)-pkg.tar.gz
SOURCES=dictionary.el connection.el link.el
COMPILED=dictionary.elc connection.elc link.elc
+# For make dist
+LISP_FILES=connection.el dictionary.el link.el lpath.el dictionary-init.el \
+ install-package.el
+DOC_FILES=README GPL Makefile
+DEB_FILES=README.debian control copyright install.debian postinst \
+ prerm remove.debian rules changelog dirs
+DEB_DIR=deb
+
.SUFFIXES: .elc .el
.el.elc:
@@ -78,6 +86,20 @@ html: doc/dictionary
doc/dictionary: doc/dictionary.texi
cd doc && makeinfo --html dictionary
+.PHONY: dist
+dist:
+ @[ -x debian ] || ln -s deb debian; \
+ VERSION=$$(dpkg-parsechangelog | perl -n -e '/^Version: (.*)-/ && print "$$1\n"'); \
+ DIR=$$(mktemp -d); \
+ DESTDIR="$$DIR/dictionary-$$VERSION"; \
+ install -d $$DESTDIR; \
+ install $(LISP_FILES) $(DOC_FILES) $$DESTDIR; \
+ mkdir $$DESTDIR/$(DEB_DIR); \
+ cd $(DEB_DIR) && install $(DEB_FILES) $$DESTDIR/$(DEB_DIR); \
+ tar czf $(CURDIR)/dictionary-$$VERSION.tar.gz -C $$DIR .; \
+ rm -r $$DIR; \
+ echo "dictionary-$$VERSION.tar.gz has been created"
+
.PHONY: clean
clean:
rm -f $(XEMACS-PACKAGE) $(COMPILED) build