File: rules

package info (click to toggle)
rust-h2 0.4.7-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,156 kB
  • sloc: makefile: 12
file content (14 lines) | stat: -rwxr-xr-x 395 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/make -f

execute_before_dh_auto_configure:
	rm -rf legacy
	cp -a src legacy
	grep -v legacy legacy/lib.rs | sponge legacy/lib.rs
	for FILE in `find legacy -name '*.rs'` ; do sed -i s/crate::/crate::legacy::/ $$FILE ; done
	for FILE in `find legacy -name '*.rs'` ; do sed -i s/http::/http_02::/ $$FILE ; done

%:
	dh $@ --buildsystem cargo

execute_after_dh_auto_clean:
	rm -rf legacy