aboutsummaryrefslogtreecommitdiffstats
path: root/debian/rules
blob: afbb51e945670406e96afa3765ad03f888b21278 (plain) (blame)
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
#!/usr/bin/make -f

#export DH_VERBOSE=1

include /usr/share/quilt/quilt.make

# These are used for cross-compiling and for saving the configure script
# from having to guess our platform (since we know it already)
DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)

config.status: configure $(QUILT_STAMPFN)
	dh_testdir
	cp /usr/share/misc/config.sub /usr/share/misc/config.guess .
	CFLAGS="$(CFLAGS)" LDFLAGS="$(INSTALL_PROGRAM)" ./configure \
		   --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
		   --prefix=/usr --mandir=\$${prefix}/share/man \
		   --infodir=\$${prefix}/share/info \
		   --enable-taskstats --enable-openvz

build: build-stamp
build-stamp: config.status
	dh build --before dh_auto_configure
	dh build --after dh_auto_configure
	touch build-stamp

clean: unpatch
	dh_testdir
	dh_testroot
	rm -f build-stamp 
	
	([ -f Makefile ] && $(MAKE) distclean) || true
	
	dh_clean config.sub config.guess
	dh_clean

install: build
	dh install --before dh_auto_install
	$(MAKE) install DESTDIR=$(CURDIR)/debian/htop
	dh install --after dh_auto_install

binary-indep:
binary-arch: install
	dh binary-arch

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

© 2014-2024 Faster IT GmbH | imprint | privacy policy