Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2 # See debhelper(7) (uncomment to enable)
3 # output every command that modifies files on the build system.
4 #DH_VERBOSE = 1
5
6 export HOME_LORENE = $(shell pwd)
7
8 # see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/*
9 DPKG_EXPORT_BUILDFLAGS = 1
10 include /usr/share/dpkg/default.mk
11
12 # see FEATURE AREAS in dpkg-buildflags(1)
13 export DEB_BUILD_MAINT_OPTIONS = hardening=+all optimize=-lto
14
15 # see ENVIRONMENT in dpkg-buildflags(1)
16 # package maintainers to append CFLAGS
17 #export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
18 # package maintainers to append LDFLAGS
19 #export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
20
21 # managing sonames
22 export liblorene_soname = liblorene-debian.so.1
23 export liblorene_filename = liblorene-debian.so.1.0.0
24 export liblorenef77_soname = liblorenef77-debian.so.1
25 export liblorenef77_filename = liblorenef77-debian.so.1.0.0
26 export liblorene_export_soname = liblorene_export-debian.so.0
27 export liblorene_export_filename = liblorene_export-debian.so.0.0.0
28
29 # main packaging script based on dh7 syntax
30 %:
31 dh $@
32
33 # debmake generated override targets
34 # This is example for Cmake (See http://bugs.debian.org/641051 )
35 #override_dh_auto_configure:
36 # dh_auto_configure -- \
37 # -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH)
38
39 override_dh_auto_build-indep: local_settings
40 $(MAKE) doc
41
42 override_dh_auto_test-indep:
43
44 override_dh_auto_build-arch: local_settings
45 $(MAKE) cpp fortran export test
46 $(MAKE) -f debian/Makefile.sharedlibraries
47
48 override_dh_auto_test-arch:
49 Test/test_lapack
50
51 override_dh_auto_install override_dh_auto_install-indep override_dh_auto_install-arch:
52
53 override_dh_auto_clean: local_settings
54 $(MAKE) -f debian/Makefile.sharedlibraries clean
55 $(MAKE) uninstall
56
57 local_settings: debian/local_settings
58 cp debian/local_settings ./local_settings
59
60 #### Get source from cvs.
61 # - To get the very last version:
62 # path/debian/rules get-orig-source
63 # - To get version from a specific date, change CVS_DATE:
64 # path/debian/rules CVS_DATE=2016-08-01 get-orig-source
65 # - For instance, to get last packaged version, from the top directory
66 # of the unpacked Debian source package:
67 # ./debian/rules CVS_DATE=`dpkg-parsechangelog -SVersion | sed 's/0.0.0~cvs//' | awk -F- '{print $1}'` get-orig-source
68 # The source code will be retrieved from CVS into the ./Lorene
69 # directory. En error is triggered if such a file or directory already
70 # exists.
71 CVS_DATE = today
72 get-orig-source:
73 ifneq (,$(wildcard Lorene))
74 $(error "Lorene file or directory exists, please remove it before running get-orig-source")
75 else
76 cvs -z5 -d :pserver:anonymous:[email protected]:/cvsroot export -D$(CVS_DATE) Lorene
77 # Presumably from non-DFSG PGPLOT, not used
78 rm -Rf Lorene/C++/Include_extra
79 endif