File: rules

package info (click to toggle)
o3dgc 0~20131011-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 1,136 kB
  • sloc: cpp: 5,142; makefile: 37; python: 29; php: 20
file content (66 lines) | stat: -rwxr-xr-x 2,111 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
#DH_VERBOSE = 1

# see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/*
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/default.mk

# see FEATURE AREAS in dpkg-buildflags(1)
#export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# see ENVIRONMENT in dpkg-buildflags(1)
# package maintainers to append CFLAGS
#export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
# package maintainers to append LDFLAGS
#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed


# main packaging script based on dh7 syntax
%:
	dh $@ 

# debmake generated override targets
# This is example for Cmake (See http://bugs.debian.org/641051 )
#override_dh_auto_configure:
#	dh_auto_configure -- \
#	-DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH)

override_dh_auto_build:
	cd src && cmake . && $(MAKE)

override_dh_auto_clean:
	rm -f src/CMakeCache.txt
	rm -f src/CMakeFiles/3.0.2/CMakeCCompiler.cmake
	rm -f src/CMakeFiles/3.0.2/CMakeCXXCompiler.cmake
	rm -f src/CMakeFiles/3.0.2/CMakeSystem.cmake
	rm -f src/CMakeFiles/3.0.2/CompilerIdC/CMakeCCompilerId.c
	rm -f src/CMakeFiles/3.0.2/CompilerIdCXX/CMakeCXXCompilerId.cpp
	rm -f src/CMakeFiles/CMakeDirectoryInformation.cmake
	rm -f src/CMakeFiles/CMakeOutput.log
	rm -f src/CMakeFiles/Makefile.cmake
	rm -f src/CMakeFiles/Makefile2
	rm -f src/CMakeFiles/TargetDirectories.txt
	rm -f src/CMakeFiles/cmake.check_cache
	rm -f src/CMakeFiles/progress.marks
	rm -f src/Makefile
	rm -f src/cmake_install.cmake
	rm -f src/o3dgc_common_lib/Makefile
	rm -f src/o3dgc_common_lib/cmake_install.cmake
	rm -f src/o3dgc_decode_lib/Makefile
	rm -f src/o3dgc_decode_lib/cmake_install.cmake
	rm -f src/o3dgc_encode_lib/Makefile
	rm -f src/o3dgc_encode_lib/cmake_install.cmake
	rm -f src/test/Makefile
	rm -f src/test/cmake_install.cmake


	find . -name "a.out" -exec rm {} \;
	find . -name "CMakeDetermineCompilerABI*" -exec rm {} \;
	find . -name "libo3dgc*.a" -exec rm {} \;
	rm -rf src/o3dgc_*_lib/CMakeFiles
	rm -f src/test/test_o3dgc
	rm -rf src/test/CMakeFiles
	dh_auto_clean