rules.in 2.05 KB
Newer Older
1
2
3
4
5
6
7
#!/usr/bin/make -f

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -Scmake -DAMDiS --builddirectory=build_libamdis --package=libamdis -- \
Praetorius, Simon's avatar
Praetorius, Simon committed
8
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
9
10
11
12
13
		-DENABLE_EXTENSIONS:BOOL=ON \
		-DENABLE_COMPRESSION:BOOL=ON \
		-DENABLE_UMFPACK:BOOL=ON

	dh_auto_configure -Scmake -DAMDiS --builddirectory=build_libamdis_par --package=libamdis-par -- \
Praetorius, Simon's avatar
Praetorius, Simon committed
14
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
		-DENABLE_EXTENSIONS:BOOL=ON \
		-DENABLE_COMPRESSION:BOOL=ON \
		-DENABLE_UMFPACK:BOOL=OFF \
		-DENABLE_PARALLEL_DOMAIN:BOOL=ON

	dh_auto_configure -Scmake -DAMDiS --builddirectory=build_libamdis_debug --package=libamdis-debug -- \
		-DENABLE_EXTENSIONS:BOOL=ON \
		-DENABLE_COMPRESSION:BOOL=ON \
		-DENABLE_UMFPACK:BOOL=ON

	dh_auto_configure -Scmake -DAMDiS --builddirectory=build_libamdis_par_debug --package=libamdis-par-debug -- \
		-DENABLE_EXTENSIONS:BOOL=ON \
		-DENABLE_COMPRESSION:BOOL=ON \
		-DENABLE_UMFPACK:BOOL=OFF \
		-DENABLE_PARALLEL_DOMAIN:BOOL=ON

override_dh_auto_build:
	dh_auto_build --builddirectory=build_libamdis --package=libamdis --max-parallel=2
	dh_auto_build --builddirectory=build_libamdis_par --package=libamdis-par --max-parallel=2
	dh_auto_build --builddirectory=build_libamdis_debug --package=libamdis-debug --max-parallel=2
	dh_auto_build --builddirectory=build_libamdis_par_debug --package=libamdis-par-debug --max-parallel=2
Praetorius, Simon's avatar
Praetorius, Simon committed
36
	doxygen AMDiS/doc/Doxyfile
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54

override_dh_auto_install:
	dh_auto_install --builddirectory=build_libamdis --package=libamdis
	dh_auto_install --builddirectory=build_libamdis_par --package=libamdis-par
	dh_auto_install --builddirectory=build_libamdis_debug --package=libamdis-debug
	dh_auto_install --builddirectory=build_libamdis_par_debug --package=libamdis-par-debug

override_dh_install:
	dh_install --package=libamdis-dev
	dh_install --package=libamdis
	dh_install --package=libamdis-par
	dh_install --package=libamdis-debug
	dh_install --package=libamdis-par-debug

override_dh_strip:
	dh_strip --package=libamdis-debug --keep-debug
	dh_strip --package=libamdis-par-debug --keep-debug
	dh_strip --remaining-packages