File: rules

package info (click to toggle)
arduino-ctags 5.8-arduino11-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,772 kB
  • sloc: ansic: 35,037; makefile: 132; sh: 23
file content (36 lines) | stat: -rwxr-xr-x 867 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
30
31
32
33
34
35
36
#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)

# Verbose output of every command that modifies files on the build system.
# Uncomment if needed.
#export DH_VERBOSE = 1

include /usr/share/dpkg/buildflags.mk
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
CFLAGS+=$(CPPFLAGS)
CXXFLAGS+=$(CPPFLAGS)

# Directory for out of tree build.
DEB_BUILD_DIR=debian/build

# Default install folder.
INSTDIR=$(CURDIR)/debian/tmp

# Additional configure options.
DEB_CONFIGURE_OPTS := \
    --prefix=$(INSTDIR)/usr

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure --sourcedirectory=$(CURDIR) \
	                  --builddirectory=$(DEB_BUILD_DIR) -- \
	                  $(DEB_CONFIGURE_OPTS)

override_dh_auto_install:
	dh_auto_install --builddirectory=$(DEB_BUILD_DIR)

override_dh_installchangelogs:
	dh_installchangelogs NEWS