| 1 | #!/usr/bin/make -f |
| 2 | |
| 3 | PACKAGE = $(shell dh_listpackages) |
| 4 | TMP = $(CURDIR)/debian/$(PACKAGE) |
| 5 | |
| 6 | %: |
| 7 | dh $@ |
| 8 | |
| 9 | override_dh_auto_install: |
| 10 | dh_auto_install |
| 11 | sed -i '1s|^#!/usr/bin/env perl|#!/usr/bin/perl|' $(TMP)/usr/bin/gitlab-api-v4 |
| 12 | |
| 13 | # call manually before upload to update shell completions |
| 14 | completion: |
| 15 | $(CURDIR)/debian/utils/update-shell-completions |
| 16 | |
| 17 | # call manually before upload to check if module is regeneratable |
| 18 | # not called during build as it removes $VERSION |
| 19 | generate: |
| 20 | ( cd $(CURDIR)/author ; perl generate.pl > $(CURDIR)/lib/GitLab/API/v4.pm ) |
| 21 | |
| 22 | .PHONY: completion generate |