File: rules

package info (click to toggle)
r-cran-rmarkdown 2.6+dfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 7,552 kB
  • sloc: javascript: 5,605; sh: 24; makefile: 17
file content (27 lines) | stat: -rwxr-xr-x 1,090 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
#!/usr/bin/make -f

include /usr/share/dh-r/r-cran.mk

%:
	dh $@ --buildsystem R

override_dh_auto_configure:
	mkdir -p inst/rmd/h/jquery
	ln -s /usr/share/nodejs/jquery/dist/jquery.min.js inst/rmd/h/jquery/
	dh_auto_configure

override_dh_install:
	dh_install
	mkdir -p $(CURDIR)/debian/$(DEB_SOURCE)/$(debRdir)/$(cranName)/rmd/ioslides/ioslides-13.5.1/js/polyfills
#	cp -a debian/js/requirejs/order.min.js		$(CURDIR)/debian/$(DEB_SOURCE)/$(debRdir)/$(cranName)/rmd/ioslides/ioslides-13.5.1/js/order.js
#	cp -a debian/js/requirejs/require.min.js	$(CURDIR)/debian/$(DEB_SOURCE)/$(debRdir)/$(cranName)/rmd/ioslides/ioslides-13.5.1/js/require-1.0.8.min.js
#	cp -a debian/js/classList.js/classList.min.js	$(CURDIR)/debian/$(DEB_SOURCE)/$(debRdir)/$(cranName)/rmd/ioslides/ioslides-13.5.1/js/polyfills/classList.min.js
	find debian -name LICENSE -delete

override_dh_fixperms:
	dh_fixperms
	find debian \( -name "*.ttf" -o -name "*.tex" \) -executable -exec chmod -x \{\} \;

override_dh_auto_clean:
	dh_auto_clean
	rm -rf inst/rmd/h/jquery # cleaning up directory created in dh_auto_configure