File: rules

package info (click to toggle)
make-dfsg 4.2.1-1.2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 6,020 kB
  • sloc: ansic: 28,634; perl: 1,482; sh: 761; makefile: 183; lisp: 26; sed: 16
file content (66 lines) | stat: -rwxr-xr-x 2,091 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#!/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
BUILDDIR_NORMAL = $(SRCTOP)/debian/build-make
BUILDDIR_GUILE  = $(SRCTOP)/debian/build-make-guile

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

export DEB_CFLAGS_APPEND=-Wall

%:
	dh $@ --parallel  --with autoreconf

override_dh_auto_configure:
ifneq (,$(filter make-guile, $(shell dh_listpackages)))
	mkdir -p $(BUILDDIR_GUILE)
	ac_cv_lib_util_getloadavg=no dh_auto_configure --parallel \
           -B$(BUILDDIR_GUILE) -- --prefix=$(PREFIX) $(confflags) \
              --with-guile
endif
ifneq (,$(filter make, $(shell dh_listpackages)))
	mkdir -p $(BUILDDIR_NORMAL)
	ac_cv_lib_util_getloadavg=no dh_auto_configure --parallel  \
           -B$(BUILDDIR_NORMAL) -- --prefix=$(PREFIX) $(confflags) \
              --with-guile=no
endif

override_dh_auto_build:
ifneq (,$(filter make-guile, $(shell dh_listpackages)))
	dh_auto_build --parallel -B$(BUILDDIR_GUILE)
endif
ifneq (,$(filter make, $(shell dh_listpackages)))
	dh_auto_build --parallel -B$(BUILDDIR_NORMAL)
endif

override_dh_auto_test:
ifneq (,$(filter make-guile, $(shell dh_listpackages)))
	dh_auto_test --parallel -B$(BUILDDIR_GUILE)
endif
ifneq (,$(filter make, $(shell dh_listpackages)))
	dh_auto_test --parallel -B$(BUILDDIR_NORMAL)
endif

override_dh_auto_install:
ifneq (,$(filter make-guile, $(shell dh_listpackages)))
	dh_auto_install -B$(BUILDDIR_GUILE)  --destdir=debian/make-guile
endif
ifneq (,$(filter make, $(shell dh_listpackages)))
	dh_auto_install -B$(BUILDDIR_NORMAL) --destdir=debian/make
endif

#Local variables:
#mode: makefile
#End: