File: rules

package info (click to toggle)
psmt2-frontend 0.4.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 452 kB
  • sloc: ml: 2,464; python: 60; makefile: 48
file content (22 lines) | stat: -rwxr-xr-x 692 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
#!/usr/bin/make -f
# -*- makefile -*-

include /usr/share/ocaml/ocamlvars.mk

%:
	dh $@ --with ocaml --buildsystem ocaml_dune

execute_after_dh_auto_install:
	# drop excess files
	rm -rf debian/tmp$(OCAML_STDLIB_DIR)/psmt2-frontend_bin
	find debian/tmp -name "LICENSE*" -delete
	find debian/tmp -name index.mld -delete
	find debian/tmp -name CHANGES.md -delete
	find debian/tmp -type d -empty -delete
	# we detect what to ship
	find debian/tmp -regextype posix-awk \
	  -regex '.*\.(cma|cmxs)$$' \
	  >> debian/libpsmt2-frontend-ocaml.install
	find debian/tmp -regextype posix-awk \
	  -regex '.*\.(a|cmi|cmo|cmt|cmti|cmx|cmxa|ml|mli|o])$$' \
	  >> debian/libpsmt2-frontend-ocaml-dev.install