File: rules

package info (click to toggle)
coinst 1.01-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 652 kB
  • sloc: ml: 6,576; makefile: 119
file content (25 lines) | stat: -rwxr-xr-x 417 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
23
24
25
#!/usr/bin/make -f

OPTCOMPILER=/usr/bin/ocamlopt

%:
	dh $@ --with ocaml

override_dh_auto_build:
	if [ -x $(OPTCOMPILER) ]; then \
                $(MAKE);\
		cd viewer;\
		make coinst_viewer;\
        else\
		$(MAKE) coinst.byte;\
		ln coinst.byte coinst;\
		cd viewer;\
		make coinst_viewer.byte;\
		ln coinst_viewer.byte coinst_viewer;\
        fi

override_dh_auto_clean:
	make clean
	cd viewer && make clean