File: rules

package info (click to toggle)
rust-presenterm 0.15.1-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,692 kB
  • sloc: sh: 51; javascript: 36; makefile: 14
file content (16 lines) | stat: -rwxr-xr-x 488 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/make -f
%:
	dh $@ --buildsystem cargo

ACK_FILE = $(shell dpkg -L librust-bat-dev | grep acknowledgements.bin)
BAT_ASSETS_DIR = $(shell dirname ${ACK_FILE})
BAT_DIR = $(shell dirname ${BAT_ASSETS_DIR})

execute_after_dh_auto_clean:
	rm -rf bat/

execute_before_dh_auto_build:
	mkdir bat
	ln -sf ${BAT_ASSETS_DIR}/syntaxes.bin ${BAT_ASSETS_DIR}/themes.bin bat/
	cp ${BAT_DIR}/LICENSE-MIT bat/acknowledgements.txt
	zlib-flate -uncompress <$(ACK_FILE) >> bat/acknowledgements.txt