File: rules

package info (click to toggle)
colpack 1.0.10-7
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 10,700 kB
  • sloc: cpp: 49,807; ansic: 1,231; makefile: 419; sh: 13
file content (29 lines) | stat: -rwxr-xr-x 937 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@ --sourcedirectory build/automake

override_dh_auto_clean:
	-dh_auto_clean

# Disable build-time compilation of examples.  Enabling would be a
# harmless reality check, except we want to install the example
# sources as documentation, and compiling them leaves the compilation
# outputs in place, which then need to be filtered out.
override_dh_auto_configure:
	dh_auto_configure -- --enable-examples=no --enable-openmp

override_dh_installexamples:
	dh_installexamples -X.o -X.log -X.trs -X.gitignore -X.deps -X.libs -X.dirstamp

execute_after_dh_installexamples:
	@echo "Remove unnecessary executable shell script shims that set LD_LIBRARY_PATH"
	-find debian/libcolpack-dev/usr/share/doc/libcolpack-dev/examples \
		-type f -executable \
		-ls -delete

# Do not compress the example source code.
override_dh_compress:
	dh_compress -X.cpp -Xeval_fun_chem.c