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 37 38 39 40 41 42 43 44 45 46 47 48 49 50
|
#!/usr/bin/make -f
PEAR ?= /usr/bin/pear
PEAR_PKG = $(shell ls |grep Date)
PACKAGE = php-date
INSTALLDIR = $(CURDIR)/debian/$(PACKAGE)
PHPDIR = $(INSTALLDIR)/usr/share/php
build:
clean:
dh_testdir
dh_testroot
if [ -f $(PEAR_PKG)/package.xml ]; then \
rm $(PEAR_PKG)/package.xml; \
fi
dh_clean
install: build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
cp package.xml $(PEAR_PKG)/package.xml;
$(PEAR) install -n -R $(INSTALLDIR) $(PEAR_PKG)/package.xml;
rm -f $(PHPDIR)/.filemap;
rm -f $(PHPDIR)/.lock;
rm -rf $(PHPDIR)/.channels;
rm -rf $(PHPDIR)/.depdblock;
rm -rf $(PHPDIR)/.depdb;
rm -rf $(PHPDIR)/docs;
rm -rf $(PHPDIR)/tests;
binary: binary-arch binary-indep
binary-indep: build install
dh_testdir
dh_testroot
dh_installchangelogs
dh_installdocs
dh_fixperms
dh_compress
dh_gencontrol
dh_md5sums
dh_builddeb
binary-arch: binary-indep
.PHONY: binary binary-arch binary-indep build clean
|