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

include /usr/share/dpkg/architecture.mk

ifeq ($(DEB_HOST_ARCH),amd64)
DIRECTORY := 64bit
endif

ifeq ($(DEB_HOST_ARCH),i386)
DIRECTORY := 32bit
endif

%:
	dh ${@}

execute_after_dh_auto_clean:
	rm -rf build

override_dh_auto_build:
	mkdir -p build
	unzip IPMICFG*.zip -d build

override_dh_auto_install:
	mkdir -p debian/supermicro-ipmicfg/usr/bin
	cp -a build/*/Linux/$(DIRECTORY)/IPMICFG-Linux.* debian/supermicro-ipmicfg/usr/bin/supermicro-ipmicfg

override_dh_installchangelogs:
	dh_installchangelogs build/*/ReleaseNotes.txt

override_dh_dwz:
	# disabled

override_dh_strip:
	# disabled

override_dh_strip_nondeterminism:
	# disabled