File: rules

package info (click to toggle)
libgitlab-api-v4-perl 0.27-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,500 kB
  • sloc: perl: 5,960; sh: 838; python: 63; makefile: 12
file content (22 lines) | stat: -rwxr-xr-x 580 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
#!/usr/bin/make -f

PACKAGE = $(shell dh_listpackages)
TMP     = $(CURDIR)/debian/$(PACKAGE)

%:
	dh $@

override_dh_auto_install:
	dh_auto_install
	sed -i '1s|^#!/usr/bin/env perl|#!/usr/bin/perl|' $(TMP)/usr/bin/gitlab-api-v4

# call manually before upload to update shell completions
completion:
	$(CURDIR)/debian/utils/update-shell-completions

# call manually before upload to check if module is regeneratable
# not called during build as it removes $VERSION
generate:
	( cd $(CURDIR)/author ; perl generate.pl > $(CURDIR)/lib/GitLab/API/v4.pm )

.PHONY: completion generate