File: rules

package info (click to toggle)
tinyos-tools 1.4.2-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 3,140 kB
  • ctags: 1,626
  • sloc: cpp: 10,398; sh: 1,229; python: 1,200; ansic: 562; makefile: 305; xml: 24
file content (33 lines) | stat: -rwxr-xr-x 1,279 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f
%:
	dh $@

override_dh_auto_clean:
	dh_auto_clean
	if [ -f tools/platforms/mica/uisp/kernel/stargate/stargate_ssp.o.orig ] ; then \
		mv -f tools/platforms/mica/uisp/kernel/stargate/stargate_ssp.o.orig \
		      tools/platforms/mica/uisp/kernel/stargate/stargate_ssp.o ; \
	fi

override_dh_auto_configure:
	cd tools ; ./Bootstrap
	cd tools/platforms/mica/uisp ; ./bootstrap
	. /etc/profile.d/tinyos.sh && dh_auto_configure -Dtools

override_dh_auto_build:
	mv -f tools/platforms/mica/uisp/kernel/stargate/stargate_ssp.o tools/platforms/mica/uisp/kernel/stargate/stargate_ssp.o.orig
	. /etc/profile.d/tinyos.sh && dh_auto_build -Dtools

override_dh_auto_install:
	. /etc/profile.d/tinyos.sh && dh_auto_install -Dtools

override_dh_install:
	# remove uisp (we depend on the uisp debian package instead)
	rm -rf debian/tinyos-tools/usr/bin/uisp
	rm -rf debian/tinyos-tools/usr/share/man/man1/uisp.1
	# remove unneeded files
	rm -rf debian/tinyos-tools/usr/share/doc/tinyos-tools-1.4.2
	rm -rf debian/tinyos-tools//usr/share/doc/uisp-20050519tinyos
	# remove language extension from binaries
	mv debian/tinyos-tools/usr/bin/tos-dump.py debian/tinyos-tools/usr/bin/tos-dump
	mv debian/tinyos-tools/usr/bin/samba-program.py debian/tinyos-tools/usr/bin/samba-program