File: rules

package info (click to toggle)
vite 1.4-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 19,160 kB
  • sloc: cpp: 30,167; makefile: 467; sh: 237; python: 140; ansic: 67; xml: 19
file content (38 lines) | stat: -rwxr-xr-x 946 bytes parent folder | download
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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = reproducible=+fixfilepath hardening=+all

%:
	dh $@

ifneq ($(DEB_HOST_ARCH_OS),hurd)
OTF2_ENABLE=-DVITE_ENABLE_OTF2=ON
endif

# Adding CPPFLAGS by hand until #653916 is fixed
override_dh_auto_configure:
	dh_auto_configure -- $(OTF2_ENABLE) \
		-DVITE_ENABLE_MT_PARSERS=ON \
		-DVITE_ENABLE_VBO=OFF \
		-DCMAKE_CXX_COMPILER_ARG1="$(CPPFLAGS)"

	dh_auto_configure -Pdebian/vite-vbo -Bvite-vbo -- $(OTF2_ENABLE) \
		-DVITE_ENABLE_MT_PARSERS=ON \
		-DVITE_ENABLE_VBO=ON \
		-DCMAKE_CXX_COMPILER_ARG1="$(CPPFLAGS)"

override_dh_auto_build:
	dh_auto_build
	FORCE_SOURCE_DATE=1 $(MAKE) -C docs/user_manual

	dh_auto_build -Pdebian/vite-vbo -Bvite-vbo

override_dh_auto_install:
	dh_auto_install

	dh_auto_install -Pdebian/vite-vbo -Bvite-vbo
	mv $(CURDIR)/debian/vite-vbo/usr/bin/vite $(CURDIR)/debian/vite/usr/bin/vite-vbo

override_dh_auto_clean:
	$(MAKE) -C docs/user_manual clean
	dh_auto_clean