File: rules

package info (click to toggle)
pxp 1.2.9-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 7,772 kB
  • ctags: 2,534
  • sloc: ml: 28,666; xml: 2,597; makefile: 821; sh: 691
file content (20 lines) | stat: -rwxr-xr-x 648 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/make -f
include /usr/share/cdbs/1/class/makefile.mk
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/ocaml.mk

PKGNAME = libpxp-ocaml-dev
DESTDIR=$(CURDIR)/debian/$(PKGNAME)$(OCAML_STDLIB_DIR)
DEB_MAKE_INSTALL_TARGET = install DESTDIR=$(DESTDIR)

configure/$(PKGNAME)::
	./configure -without-wlex -without-wlex-compat
	rm -f README	# it's a symlink, the real one is doc/README
ifeq ($(OCAML_HAVE_OCAMLOPT),yes)
build/$(PKGNAME)::
	$(MAKE) opt
endif
binary-post-install/$(PKGNAME)::
	-for f in debian/$(PKGNAME)/usr/share/doc/$(PKGNAME)/examples/xmlforms/styles/* ; do \
		test ! -r $$f && rm -f $$f ; \
	done