File: rules

package info (click to toggle)
exuberant-ctags 1%3A5.9~svn20110310-12
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,544 kB
  • sloc: ansic: 35,516; makefile: 134; sh: 36
file content (31 lines) | stat: -rwxr-xr-x 1,068 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
#! /usr/bin/make -f
%:
	dh $@ --with autoreconf --parallel

dtmp = debian/exuberant-ctags

export DEB_BUILD_MAINT_OPTIONS := hardening=+all
export DEB_CFLAGS_MAINT_APPEND := -Wall

override_dh_auto_configure:
	dh_auto_configure -- CFLAGS="$(CPPFLAGS) $(CFLAGS)"

override_dh_auto_install:
# Install exuberant-ctags itself
	install -m 755 ctags $(dtmp)/usr/bin/ctags-exuberant
	install -p -m 644 ctags.1 $(dtmp)/usr/share/man/man1/ctags-exuberant.1

override_dh_installchangelogs:
	dh_installchangelogs NEWS

# git clones do not contain git-svn metadata.  This can be used to set it
# back up if you need it.
git-svn-setup:
	set -e; if [ -d .git ] && [ ! -d .git/svn ]; then \
		git config svn-remote.svn.url svn://svn.code.sf.net/p/ctags/code; \
		git config svn-remote.svn.fetch trunk:refs/remotes/svn/trunk; \
		git config svn-remote.svn.branches 'branches/*:refs/remotes/svn/*'; \
		git config svn-remote.svn.tags 'tags/*:refs/remotes/svn/tags/*'; \
		git update-ref refs/remotes/svn/trunk "$$(git log -n1 --grep git-svn-id: --format=%H)"; \
		git svn fetch; \
	fi