File: rules

package info (click to toggle)
adabrowse 4.0.3-5
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 2,364 kB
  • sloc: ada: 29,770; makefile: 137; ansic: 4
file content (55 lines) | stat: -rwxr-xr-x 881 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
#!/usr/bin/make -f

include /usr/share/quilt/quilt.make

CPUS := $(shell getconf _NPROCESSORS_ONLN)
CC := gcc

clean: unpatch
	dh_testdir
	dh_testroot

	rm -rf obj adabrowse sdefault.adb ad-projects-impl_yes-get_parent.adb
	rm -f build-stamp

	dh_clean

build: build-arch build-indep

build-arch: build-stamp

build-indep: build-stamp

build-stamp: $(QUILT_STAMPFN)
	dh_testdir

	mkdir -p obj
	$(CC) -c util-nl.c -o obj/util-nl.o -O2
	gnatmake -j$(CPUS) -Pdebian/misc/adabrowse.gpr

	touch build-stamp

install:

binary: binary-arch

binary-arch: build
	dh_testdir
	dh_testroot
	dh_installchangelogs
	dh_installdocs
	dh_installexamples
	dh_install
	dh_installman
	dh_strip
	dh_compress -X.ads -X.adb
	dh_fixperms
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary-indep:

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