File: rules

package info (click to toggle)
libstxxl 1.4.1-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster
  • size: 5,444 kB
  • sloc: cpp: 45,101; ansic: 4,071; perl: 610; sh: 555; xml: 174; makefile: 19
file content (31 lines) | stat: -rwxr-xr-x 879 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
#!/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 $@

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/