File: rules

package info (click to toggle)
inja 3.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,620 kB
  • sloc: cpp: 30,997; python: 189; makefile: 16; sh: 3
file content (27 lines) | stat: -rwxr-xr-x 905 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
#!/usr/bin/make -f
# -*- mode: makefile; coding: utf-8 -*-

%:
	dh $@ --buildsystem meson


override_dh_auto_configure:
	# make sure we use the Debian-packaged code for testing, when available
	mv $(CURDIR)/third_party/include/doctest $(CURDIR)/third_party/include/doctest.vendor
	ln -s /usr/include/doctest $(CURDIR)/third_party/include/doctest

	mv $(CURDIR)/third_party/include/nlohmann $(CURDIR)/third_party/include/nlohmann.vendor
	ln -s /usr/include/nlohmann $(CURDIR)/third_party/include/nlohmann

	dh_auto_configure


override_dh_auto_clean:
	if [ -d "$(CURDIR)/third_party/include/doctest.vendor" ]; then \
		mv -f "$(CURDIR)/third_party/include/doctest.vendor" "$(CURDIR)/third_party/include/doctest"; \
	fi
	if [ -d "$(CURDIR)/third_party/include/nlohmann.vendor" ]; then \
		mv -f "$(CURDIR)/third_party/include/nlohmann.vendor" "$(CURDIR)/third_party/include/nlohmann"; \
	fi

	dh_auto_clean