diff options
author | Sébastien Delafond <sdelafond@gmail.com> | 2014-07-13 13:35:01 +0200 |
---|---|---|
committer | Sébastien Delafond <sdelafond@gmail.com> | 2014-07-13 13:35:01 +0200 |
commit | 7697fa4daf3ec84f85711a84035d8f0224afd4e3 (patch) | |
tree | 24d0f1d2a9751ca8c063409fd2ab71478b296efb /debian/rules |
Imported Upstream version 7.9.2
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..e136dd6 --- /dev/null +++ b/debian/rules @@ -0,0 +1,52 @@ +#! /usr/bin/make -f + +DOC_TMP_FILES := doc/org.aux doc/org.cp doc/org.cps doc/org.fn \ + doc/org.fns doc/org.ky doc/org.kys \ + doc/org.log doc/org.pg doc/org.toc doc/org.tp \ + +DOC_FILES := doc/*pdf + +clean: + dh_testdir + dh_testroot + dh_clean + rm -f $(DOC_FILES) $(DOC_TMP_FILES) + +build build-indep build-arch: + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + cp lisp/* $(CURDIR)/debian/org-mode/usr/share/emacs/site-lisp/org-mode + cp -r etc $(CURDIR)/debian/org-mode/usr/share/emacs/site-lisp/org-mode +# cp xemacs/*.el $(CURDIR)/debian/org-mode/usr/share/xemacs/site-lisp/org-mode + cp -r contrib $(CURDIR)/debian/org-mode/usr/share/org-mode/ + make doc + rm -f $(DOC_TMP_FILES) + find $(CURDIR)/debian/org-mode/usr/share/org-mode/ -type f -exec chmod 644 "{}" \; + find $(CURDIR)/debian/org-mode/usr/share/emacs/site-lisp/org-mode -type f -exec chmod 644 "{}" \; + find $(CURDIR)/debian/org-mode/usr/share/org-mode/ -name .DS_Store -exec rm -f "{}" \; + find $(CURDIR)/debian/org-mode/usr/share/org-mode/ -name .gitignore -exec rm -f "{}" \; + +binary-indep: install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs doc/* + rm -f $(CURDIR)/debian/org-mode/usr/share/doc/org-mode/*texi* + dh_installemacsen -v + dh_fixperms + dh_installinfo doc/org + dh_compress + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +binary-arch: build-arch + +binary: binary-indep binary-arch + +.PHONY: build clean build-indep build-arch binary binary-indep binary-arch |