File: rules

package info (click to toggle)
libstxxl 1.4.0-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 5,256 kB
  • ctags: 6,830
  • sloc: cpp: 39,594; ansic: 4,217; perl: 566; sh: 555; xml: 174; makefile: 21
file content (34 lines) | stat: -rwxr-xr-x 948 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
34
#!/usr/bin/make -f
#location of stxxl's built-in jquery
JQUERY_STXXL_TARGET=/usr/share/doc/libstxxl-doc/html/html/jquery.js
#Location of debian jquery
JQUERY_SYS_TARGET=/usr/share/javascript/jquery/jquery.js
%:
	dh $@ --parallel

override_dh_auto_install:
	dh_auto_install
	#Don't want this, so delete it
	rm -rf $$(pwd)/debian/tmp/usr/lib/cmake/
	
override_dh_install:
	dh_install
	#Relink jquery to system provided copy.
	rm -f $$(pwd)/debian/libstxxl-doc/$(JQUERY_STXXL_TARGET)
	mkdir -p $$(pwd)/debian/libstxxl-doc/$$(dirname $(JQUERY_STXXL_TARGET) )
	#Symlink to system value
	ln -s $(JQUERY_SYS_TARGET) $$(pwd)/debian/libstxxl-doc/$(JQUERY_STXXL_TARGET)  

override_dh_auto_build: 
	dh_auto_build
	#Build doxygen HTML docs
	cd doc && doxygen .
	#Build PDF from doxygen generated latex files
	cd doc/latex && make
	
override_dh_auto_clean: 
	dh_auto_clean
	rm -rf doc/html/ doc/latex/

override_dh_strip:
	dh_strip --dbg-package=libstxxl1-dbg