File: rules.in

package info (click to toggle)
simage 1.7.0-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 3,912 kB
  • ctags: 1,572
  • sloc: ansic: 14,231; sh: 12,587; cpp: 930; perl: 854; makefile: 617; lisp: 25
file content (66 lines) | stat: -rw-r--r-- 1,594 bytes parent folder | download | duplicates (6)
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
59
60
61
62
63
64
65
66
#!/usr/bin/make -f
############################################################################
# rules -- debian package make rules
#
# Authors:
#   Lars J. Aas <larsa@coin3d.org>

source: clean
	@echo "> make debian/$@";

build: build-arch
	@echo "> make debian/$@";

# optional
build-arch:
	@echo "> make debian/$@"; \
	$(SHELL) configure --prefix=/usr --disable-simageguile;
	$(MAKE);

# optional
# build-indep:
# 	@echo "> make debian/$@";

binary: binary-arch
	@echo "> make debian/$@";

binary-arch:
	@echo "> make debian/$@";
	@installdir=debian/tmp; \
	rm -rf $installdir; \
	mkdir $$installdir; \
	mkdir $$installdir/DEBIAN; \
	cp debian/* $$installdir/DEBIAN/; \
	$(MAKE) DESTDIR=`pwd`/$$installdir install;
	if test `pwd | grep -c simage@SIMAGE_MAJOR_VERSION@-dev` -eq 0; then \
	  ( cd debian/tmp/usr; rm -rf include share bin ); \
	  dpkg-gencontrol -psimage@SIMAGE_MAJOR_VERSION@; \
	else \
	  dpkg-gencontrol -psimage@SIMAGE_MAJOR_VERSION@-dev; \
	fi;
#	echo >/dev/null dpkg-shlibdeps debian/tmp/usr/lib/libsimage.so;
	dpkg-deb -b debian/tmp;
	if test `pwd | grep -c simage@SIMAGE_MAJOR_VERSION@-dev` -eq 0; then \
	  mv debian/tmp.deb ../simage@SIMAGE_MAJOR_VERSION@_@VERSION@-1_$(DEB_BUILD_ARCH).deb; \
	else \
	  mv debian/tmp.deb ../simage@SIMAGE_MAJOR_VERSION@-dev_@VERSION@-1_$(DEB_BUILD_ARCH).deb; \
	fi

binary-indep:
	@echo "> make debian/$@";

# optional
# get-orig-source:
# 	@echo "> make debian/$@";

clean::
	@echo "> make debian/$@";
	@if test -f Makefile; then \
	  $(MAKE) distclean; \
	else \
	  :; \
	fi;
	rm -rf debian/tmp
	rm -f debian/files

.PHONY: build