diff options
author | Torsten Hilbrich <torsten.hilbrich@gmx.net> | 2013-05-08 21:16:23 +0200 |
---|---|---|
committer | Torsten Hilbrich <torsten.hilbrich@gmx.net> | 2013-05-08 22:26:16 +0200 |
commit | 2aa47f70149a4b7525c2c6ff6db567b5b377c5b6 (patch) | |
tree | 940e0ef95d791e5c107530a6f58473b58c0bc355 /Makefile | |
parent | 818bb4736bc3fe9e522906a374a3e82d278ad383 (diff) |
deb: Now using debhelper
debmake is gone
Diffstat (limited to 'Makefile')
-rwxr-xr-x | Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -14,7 +14,8 @@ 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 + prerm remove.debian rules changelog dictionary.install \ + compat DEB_DIR=deb .SUFFIXES: .elc .el @@ -28,7 +29,7 @@ all: $(COMPILED) .PHONY: debian debian: - [ -x debian ] || ln -s deb debian + @[ -x debian ] || ln -s deb debian @if [ -x /usr/bin/fakeroot ]; then \ dpkg-buildpackage -us -uc -rfakeroot; \ elif [ `id -u` -ne 0 ]; then \ @@ -94,7 +95,7 @@ dist: install -d $$DESTDIR; \ install $(LISP_FILES) $(DOC_FILES) $$DESTDIR; \ mkdir $$DESTDIR/$(DEB_DIR); \ - cd $(DEB_DIR) && install $(DEB_FILES) $$DESTDIR/$(DEB_DIR); \ + cd $(DEB_DIR) && install -m 644 $(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" |