File: rules

package info (click to toggle)
emacsen-common 2.0.8
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 152 kB
  • ctags: 25
  • sloc: perl: 418; lisp: 100; sh: 81; makefile: 27
file content (38 lines) | stat: -rwxr-xr-x 1,139 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/usr/bin/make -f

# Copyright (C) 2012, Rob Browning <rlb@defaultvalue.org>

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

pkg_dir := debian/emacsen-common
pkg_ec_lib := $(pkg_dir)/usr/lib/emacsen-common
pkg_ec_var := $(pkg_dir)/var/lib/emacsen-common

%:
	dh $@

override_dh_auto_build:
	dh_testdir debian-emacs-policy debian/rules
	chmod u+x emacs-install emacs-remove
	chmod u+x emacs-package-install emacs-package-remove
	chmod u+x emacsen-common.install emacsen-common.remove

override_dh_auto_install:
	dh_testdir debian-emacs-policy debian/rules
	perl -wc emacs-install
	perl -wc emacs-remove
	perl -wc emacs-package-install
	perl -wc emacs-package-remove
	perl -wc lib.pl

	rm -rf $(pkg_dir)
	install -D emacsen-common.install \
	  $(pkg_ec_lib)/packages/install/emacsen-common
	install -D emacsen-common.remove \
	  $(pkg_ec_lib)/packages/remove/emacsen-common
	install -d $(pkg_ec_lib)/packages/compat
	install -d $(pkg_ec_var)/state/flavor/installed
	install -d $(pkg_ec_var)/state/package/installed
	install -d $(pkg_dir)/usr/local/share/emacs/site-lisp
	find $(pkg_dir)/usr/local/share/emacs/site-lisp -ls