File: rules

package info (click to toggle)
glide2-vg 2.46-2
  • links: PTS
  • area: main
  • in suites: potato
  • size: 3,352 kB
  • ctags: 15
  • sloc: sh: 170; makefile: 135
file content (58 lines) | stat: -rwxr-xr-x 1,166 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/usr/bin/make -f
export DH_COMPAT = 2
export DH_VERBOSE = 1
this = make -f debian/rules

include debian/scripts/vars
BUILD_DIR=$(SOURCE_DIR)/$(TAR_DIR)

build: $(STAMP_DIR)/build
$(STAMP_DIR)/build:
# One of
	$(MAKE) -f debian/sys-build.mk source.make
	$(MAKE) -C $(BUILD_DIR) -f makefile.unix incs libs
	touch $(STAMP_DIR)/build
# or
#	$(MAKE -f debian/sys-build.mk source.compile

sys-clean:
	$(MAKE) -C $(BUILD_DIR) -f makefile.unix clobber

clean:
# No need to run clean
	$(MAKE) -f debian/sys-build.mk source.clean
	rm -rf $(STAMP_DIR)

binary-indep: build
# Add rules here to build the indep debs.

binary-arch: build binary-libglide2-vg
# Add rules here to build the arch debs.

binary: binary-indep binary-arch

binary-libglide2-vg:
	DH_OPTIONS="-plibglide2-vg" $(this) binary-libglide2-vg-real

binary-libglide2-vg-real: build
	dh_testdir
	dh_testroot
	dh_clean -k

	dh_installdirs

	install -m 755 $(BUILD_DIR)/sst1/lib/libglide2x.so \
                       $(PWD)/debian/libglide2-vg/usr/lib/libglide2x_VG.so
	dh_strip

	dh_installdocs
	dh_installchangelogs
	dh_link
	dh_installdeb

	dh_compress
	dh_fixperms
	dh_shlibdeps
	dh_gencontrol
	dh_builddeb