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 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
|
#!/usr/bin/make -f
# debian/rules for debcheck
include /usr/share/dpatch/dpatch.make
# export DH_VERBOSE=1
OCAMLABI := $(shell ocamlc -version)
BYTECODE = $(shell [ -x /usr/bin/ocamlopt ] || echo yes)
OCAMLRUN = $(if $(BYTECODE),ocaml-base-nox-$(OCAMLABI))
build: buildstamp
buildstamp: patch
dh_testdir
$(MAKE) depend
$(MAKE) $(if $(BYTECODE),byte,all)
touch buildstamp
clean: unpatch
dh_testdir
dh_testroot
touch .depend
$(MAKE) clean
-rm debcheck rpmcheck
-rm buildstamp
dh_clean
install: build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs -A /usr/bin /usr/share/man/man1
cp debcheck$(if $(BYTECODE),.byte) \
debian/edos-debcheck/usr/bin/edos-debcheck
cp rpmcheck$(if $(BYTECODE),.byte) \
debian/edos-rpmcheck/usr/bin/edos-rpmcheck
dh_installman -pedos-debcheck debian/edos-debcheck.1
dh_installman -pedos-rpmcheck debian/edos-rpmcheck.1
binary-arch: build install
dh_testdir
dh_testroot
dh_installdocs
dh_installchangelogs
dh_link
dh_compress
dh_strip
dh_shlibdeps
dh_fixperms
dh_installdeb
dh_gencontrol -- -VF:OCamlABI="$(OCAMLABI)" -VF:OCamlRun="$(OCAMLRUN)"
dh_md5sums
dh_builddeb
binary-indep: build install
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install debian/control patch unpatch
|