rules 1.76 KB
Newer Older
Joel Rosdahl's avatar
Joel Rosdahl committed
1 2 3 4 5
#!/usr/bin/make -f

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

Ulrik Haugen's avatar
Ulrik Haugen committed
6
PACKAGE = lyskom-elisp-client
7
VERSION := @@CLIENTVERSION@@
Ulrik Haugen's avatar
Ulrik Haugen committed
8 9 10 11 12

build: build-arch build-indep
build-arch: build-stamp
build-indep: build-stamp

Joel Rosdahl's avatar
Joel Rosdahl committed
13 14 15 16 17 18 19 20 21 22
build-stamp:
	dh_testdir

	touch build-stamp

clean:
	dh_testdir
	dh_testroot
	rm -f build-stamp

Ulrik Haugen's avatar
Ulrik Haugen committed
23
	$(MAKE) clean
Joel Rosdahl's avatar
Joel Rosdahl committed
24 25 26 27 28 29 30 31

	dh_clean

# Build architecture-independent files here.
binary-indep: build
#	dh_testversion
	dh_testdir
	dh_testroot
32
	dh_prep
Joel Rosdahl's avatar
Joel Rosdahl committed
33 34
	dh_installdirs

Ulrik Haugen's avatar
Ulrik Haugen committed
35 36 37
	$(MAKE) lyskom-$(VERSION).el
	cp lpath.el debian/$(PACKAGE)/usr/share/emacs/site-lisp/$(PACKAGE)
	gzip -nc lyskom-$(VERSION).el >debian/$(PACKAGE)/usr/share/emacs/site-lisp/$(PACKAGE)/$(PACKAGE).el.gz
Joel Rosdahl's avatar
Joel Rosdahl committed
38

Ulrik Haugen's avatar
Ulrik Haugen committed
39 40 41 42 43 44
	install -m 644 debian/50$(PACKAGE).el debian/$(PACKAGE)/etc/emacs/site-start.d
	install -m 755 debian/emacsen-common-install debian/$(PACKAGE)/usr/lib/emacsen-common/packages/install/$(PACKAGE)
	install -m 755 debian/emacsen-common-remove debian/$(PACKAGE)/usr/lib/emacsen-common/packages/remove/$(PACKAGE)
#	cp NEWS-$(VERSION) debian/$(PACKAGE)/usr/share/doc/$(PACKAGE)
	cp NEWS-0.49 debian/$(PACKAGE)/usr/share/doc/$(PACKAGE)
	cp debian/fullserverlist.el debian/englishserverlist.el debian/$(PACKAGE)/usr/share/emacs/site-lisp/$(PACKAGE)
Joel Rosdahl's avatar
Joel Rosdahl committed
45

Ulrik Haugen's avatar
Ulrik Haugen committed
46
	dh_installdebconf
Joel Rosdahl's avatar
Joel Rosdahl committed
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
	dh_installdocs
#	dh_installexamples
#	dh_installmenu
#	dh_installinit
#	dh_installcron
#	dh_installmanpages
#	dh_undocumented
	dh_installchangelogs
#	dh_strip
	dh_compress
	dh_fixperms
#	dh_suidregister
	dh_installdeb
#	dh_shlibdeps
	dh_gencontrol
#	dh_makeshlibs
	dh_md5sums
	dh_builddeb

# Build architecture-dependent files here.
binary-arch: build
# We have nothing to do by default.

Ulrik Haugen's avatar
Ulrik Haugen committed
70
source diff:
Joel Rosdahl's avatar
Joel Rosdahl committed
71 72 73 74
	@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary