File: rules

package info (click to toggle)
datatables.js 1.10.19%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 6,348 kB
  • sloc: xml: 10,397; php: 4,448; sh: 521; makefile: 21
file content (28 lines) | stat: -rwxr-xr-x 1,008 bytes parent folder | download | duplicates (5)
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
#!/usr/bin/make -f

# DH_VERBOSE := 1
DEBVERS := $(shell dpkg-parsechangelog | sed -n -e 's/^Version: //p')
VERSION := $(shell echo '$(DEBVERS)' | sed -e 's/^[[:digit:]]*://' -e 's/[~-].*//')
OVERSION := $(shell echo '$(DEBVERS)' | sed -e 's/^[[:digit:]]*://' -e 's/[+].*//')

%:
	dh $@

override_dh_auto_clean:
	rm -rf built css/.sass-cache

override_dh_auto_build:
	cd build && bash make.sh js
	cd build && bash make.sh css

override_dh_auto_install:
	mkdir -p debian/libjs-jquery-datatables/usr/share/javascript/jquery-datatables
	cp built/js/*dataTables*js \
	  debian/libjs-jquery-datatables/usr/share/javascript/jquery-datatables
	cp -r built/css \
	  debian/libjs-jquery-datatables/usr/share/javascript/jquery-datatables
	mkdir debian/libjs-jquery-datatables/usr/share/javascript/jquery-datatables/images
	cp images/*ico \
	  debian/libjs-jquery-datatables/usr/share/javascript/jquery-datatables/images
	cp images/*png \
	  debian/libjs-jquery-datatables/usr/share/javascript/jquery-datatables/images