File: rules

package info (click to toggle)
freefem 3.5.8-4.2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 2,476 kB
  • ctags: 930
  • sloc: sh: 10,708; cpp: 10,323; perl: 121; makefile: 115
file content (40 lines) | stat: -rwxr-xr-x 1,097 bytes parent folder | download | duplicates (3)
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
#!/usr/bin/make -f
# Sample debian/rules that uses cdbs.  Originaly written by Robert Millan.
# This file is public domain.

DEB_TAR_SRCDIR                  := freefem-3.5.8
DEB_AUTO_CLEANUP_RCS            := yes

# Add here any variable or target overrides you need

  
include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/cdbs/1/rules/debhelper.mk
#include /usr/share/cdbs/1/rules/tarball.mk
include /usr/share/cdbs/1/rules/simple-patchsys.mk

DEB_CONFIGURE_EXTRA_FLAGS := --includedir=/usr/include/fem 
DEB_COMPRESS_EXCLUDE     := .pdf


build/libfreefem-doc::
	doxygen freefem.doxygen
#	cd freefem-api/latex && make 

build/freefem-doc::
	cd doc && pdflatex freefem && makeindex freefem && pdflatex freefem && pdflatex freefem
	cd doc && \
		rm -rf freefem && \
		mkdir freefem && \
		hevea -fix -o freefem/freefem.hevea freefem.tex && \
		cd freefem && \
		hacha freefem.hevea && \
		rm -f freefem.hevea *.haux *.hind *.htoc

cleanbuilddir/freefem-doc::
	rm -rf doc/freefem

cleanbuilddir/libfreefem-doc::
	rm -rf freefem-api/html
	rm -rf freefem-api/latex
	rm -rf freefem-api/man