File: rules

package info (click to toggle)
php-file-iterator 1.4.1-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 84 kB
  • ctags: 54
  • sloc: php: 202; makefile: 15
file content (22 lines) | stat: -rwxr-xr-x 450 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
#!/usr/bin/make -f

BUILDDIR := $(CURDIR)/debian/build

%:
	dh $@ --with phpcomposer

override_dh_auto_build:
	# Mimic previous PEAR layout
	mkdir --parent $(BUILDDIR)/Iterator
	cp src/Iterator.php $(BUILDDIR)
	cp src/Fac*.php $(BUILDDIR)/Iterator
	phpab \
		--output $(BUILDDIR)/Iterator/Autoload.php \
		--basedir $(BUILDDIR)/Iterator \
		$(BUILDDIR)

override_dh_auto_clean:
	rm -rf $(BUILDDIR)

get-orig-source:
	uscan --rename --verbose --force