File: rules

package info (click to toggle)
crasm 1.8-1
  • links: PTS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch
  • size: 376 kB
  • sloc: ansic: 3,505; makefile: 65
file content (44 lines) | stat: -rwxr-xr-x 866 bytes parent folder | download
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
#!/usr/bin/make -f

export DEB_HOST_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
export DEB_HOST_ARCH      ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)

clean:
	dh_testdir
	$(MAKE) clean
	dh_clean

build: build-arch build-indep

build-arch: build-stamp
build-indep: build-stamp

build-stamp:
	dh_testdir
	$(MAKE)

install:
	dh_testdir
	dh_installdirs
	$(MAKE) install prefix=$(CURDIR)/debian/crasm/usr

binary-arch: build install
	dh_testdir
	dh_installdocs crasm.html
	dh_installchangelogs
	dh_installman
	dh_installexamples test/* debian/Microchess6502.txt
	dh_fixperms
	dh_strip
	dh_compress
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary-indep: build install

binary: binary-arch binary-indep

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