File: rules

package info (click to toggle)
make-doc-non-dfsg 4.3-2
  • links: PTS, VCS
  • area: non-free
  • in suites: bookworm, bullseye
  • size: 9,532 kB
  • sloc: ansic: 37,985; sh: 5,023; perl: 1,486; makefile: 141; lisp: 26; sed: 16
file content (40 lines) | stat: -rwxr-xr-x 1,274 bytes parent folder | download | duplicates (4)
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
39
40
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1
package:=make
SRCTOP:= $(shell if [ "$$PWD" != "" ]; then echo $$PWD; else pwd; fi)
INSTALL = install
ifeq (,$(filter nostrip,$(DEB_BUILD_OPTIONS)))
    INSTALL_PROGRAM += -s
endif
install_file	= $(INSTALL) -p	   -o root -g root  -m	644
install_program = $(INSTALL) -p	   -o root -g root  -m	755
install_script	= $(INSTALL) -p	   -o root -g root  -m	755
make_directory	= $(INSTALL) -p -d -o root -g root  -m	755
PREFIX=/usr

DPKG_ARCH := dpkg-architecture
export DEB_HOST_MULTIARCH  := $(shell $(DPKG_ARCH) $(ha) -qDEB_HOST_MULTIARCH)

%:
	dh $@  --with autoreconf

override_dh_auto_configure:
	ac_cv_lib_util_getloadavg=no dh_auto_configure --    \
	   --prefix=$(PREFIX) $(confflags)
override_dh_auto_build:
	$(MAKE) -C doc ps pdf info
	(cd doc && makeinfo -o make.html --html --split=chapter --ifinfo make.texi)

override_dh_auto_test:
	test -f doc/make.html/index.html
	test -f doc/make.ps

override_dh_auto_install:
	make -C doc DESTDIR=../debian/make-doc install
	test ! -f debian/make-doc/usr/share/info/dir.gz || rm debian/make-doc/usr/share/info/dir.gz
	test ! -f debian/make-doc/usr/share/info/dir    || rm debian/make-doc/usr/share/info/dir

#Local variables:
#mode: makefile
#End: