File: rules

package info (click to toggle)
ocamlmakefile 6.37.0-3
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 320 kB
  • ctags: 64
  • sloc: ml: 180; makefile: 55; ansic: 7
file content (18 lines) | stat: -rwxr-xr-x 509 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/make -f

%:
	dh $@ 

override_dh_auto_build:
	mkdir -p builddir
	mkdir -p builddir/examples
	sed "s|/usr/local/lib|/usr/lib|" \
		< OCamlMakefile > builddir/OCamlMakefile
	for f in calc camlp4 idl gtk threads; do\
	  cp -r $$f builddir/examples;\
	  sed "s|../OCamlMakefile|/usr/share/ocamlmakefile/OCamlMakefile|"\
		< $$f/Makefile\
		> builddir/examples/$$f/Makefile;\
	done
	cp debian/README.examples.idl builddir/examples/calc/README
	cp debian/README.examples.idl builddir/examples/idl/README