File: rules

package info (click to toggle)
camlp5 6.11%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 7,556 kB
  • ctags: 17,290
  • sloc: ml: 78,361; sh: 1,430; makefile: 1,217
file content (43 lines) | stat: -rwxr-xr-x 1,199 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
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/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 = camlp5
OCAML_OCAMLDOC_PACKAGES = $(PKGNAME)
OCAML_OCAMLDOC_FLAGS += -pp debian/camlp5r_w_macro.sh
OCAML_OCAMLDOC_FLAGS += -I +compiler-libs/parsing/
OCAML_DHOCAML_FLAGS += \
  --runtime-map camlp5 \
  --nodefined-map camlp5:Dynlinkaux,Dynlink # temporary hack, should be fixed

CONFIGURE_FLAGS =
CONFIGURE_FLAGS += -mandir /usr/share/man

DEB_INSTALL_DOCS_ALL := -X.cvsignore
DEB_MAKE_INSTALL_TARGET = install DESTDIR=$(CURDIR)/debian/tmp
ifeq ($(OCAML_HAVE_OCAMLOPT),yes)
DEB_MAKE_BUILD_TARGET = world.opt
else
DEB_MAKE_BUILD_TARGET = world
endif

configure/$(PKGNAME):: debian/configure-stamp
debian/configure-stamp:
	./configure $(CONFIGURE_FLAGS)
	touch debian/configure-stamp
clean::
	rm -f debian/configure-stamp
	rm -f doc/html/*.html config/Makefile config/Makefile.cnf myconfig
	rm -Rf doc/html/rss
	rm -f ocaml_src/lib/versdep.ml

pre-build:: debian/META
debian/META: debian/META.src
	sed 's/@NAME@/$(PKGNAME)/g' < $< > $@
clean::
	rm -f debian/META

build/$(PKGNAME)::
	$(MAKE) -C doc/htmlp/
	chmod +x debian/camlp5r_w_macro.sh