File: rules

package info (click to toggle)
ocamlmakefile 6.39.2-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 336 kB
  • sloc: ml: 182; makefile: 57; sh: 7; ansic: 7
file content (18 lines) | stat: -rwxr-xr-x 508 bytes parent folder | download
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