File: rules

package info (click to toggle)
malaga 7.12-7.1
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 3,044 kB
  • sloc: ansic: 21,457; sh: 8,168; lisp: 504; makefile: 270
file content (29 lines) | stat: -rwxr-xr-x 725 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
#!/usr/bin/make -f

%:
	dh $@ --with autoreconf

override_dh_auto_clean:
	rm -rf build-doc
	dh_auto_clean

override_dh_auto_configure:
	dh_auto_configure
	mkdir -p build-doc
	cd build-doc && ../configure --prefix=/usr

override_dh_auto_build:
	dh_auto_build
	$(MAKE) -C build-doc dvi html ps pdf

override_dh_auto_install:
	dh_auto_install
	# rename according to the emacs mode package name
	mv $(CURDIR)/debian/tmp/usr/share/malaga/malaga.el $(CURDIR)/debian/tmp/usr/share/malaga/malaga-mode.el
	for file in debian/tmp/usr/lib/*/*.la; do \
		sed -i "/dependency_libs/ s/'.*'/''/" $$file ; \
	done

override_dh_install-arch:
	dh_install
	cp -a $(CURDIR)/README.txt $(CURDIR)/debian/malaga-bin/usr/share/doc/malaga-bin/README