ICU-648 Build Debian package outside of source, to catch out of source

make problems easily

X-SVN-Rev: 2813
This commit is contained in:
Yves Arrouye 2000-10-26 20:37:42 +00:00
parent 582f8fa06f
commit c195ce083d
4 changed files with 19 additions and 13 deletions

1
.gitignore vendored
View file

@ -1,4 +1,5 @@
icu4c/*-stamp
icu4c/build
icu4c/data/*.cnv
icu4c/data/*.dat
icu4c/data/*.lst

View file

@ -1,2 +1,3 @@
debian
build
*-stamp

View file

@ -1,11 +1,11 @@
icu (1.6.0.1-20001025-1) unstable; urgency=low
icu (1.6.0.1-20001026-1) unstable; urgency=low
* Move architecture-dependent files into /usr/lib, instead of
/usr/share.
* Move convrtrs.txt into /etc/icu, make it a conffile, and generate
/usr/lib/icu/1.6.0.1/cnvalias.dat from it at postinst time.
-- Yves Arrouye <yves@debian.org> Tue, 24 Oct 2000 16:14:22 -0700
-- Yves Arrouye <yves@debian.org> Tue, 26 Oct 2000 11:14:22 -0700
icu (1.6.0.1-20001017-1) unstable; urgency=low

View file

@ -11,8 +11,9 @@
# This is the debhelper compatability version to use.
export DH_COMPAT=1
# Where the source for ICU is.
# Where the source for ICU is, where to build
srcdir = source
builddir = build
# ICU installation directories, w/o the initial slash
icudatadir = usr/share/icu/$(version)
@ -45,26 +46,27 @@ endif
all: build
configure: configure-stamp
configure-stamp:
configure: $(builddir)/configure-stamp
$(builddir)/configure-stamp:
dh_testdir
# Add here commands to configure the package.
cd $(srcdir); CFLAGS='$(CFLAGS)' CXXFLAGS='$(CFLAGS)' INSTALL_PROGRAM='$(INSTALL_PROGRAM)' ./configure --prefix=/usr --mandir=/usr/share/man --sysconfdir=/etc --with-data-packaging=files --disable-rpath --enable-shared --enable-static --disable-samples
touch configure-stamp
test -d $(builddir) || mkdir $(builddir)
cd build; CFLAGS='$(CFLAGS)' CXXFLAGS='$(CFLAGS)' INSTALL_PROGRAM='$(INSTALL_PROGRAM)' ../$(srcdir)/configure --srcdir=../$(srcdir) --prefix=/usr --mandir=/usr/share/man --sysconfdir=/etc --with-data-packaging=files --disable-rpath --enable-shared --enable-static --disable-samples
touch $@
build: configure-stamp build-stamp
build-stamp:
build: $(builddir)/configure-stamp $(builddir)/build-stamp
$(builddir)/build-stamp:
dh_testdir
# Add here commands to compile the package.
$(MAKE) -C $(srcdir)
$(MAKE) -C $(builddir)
touch build-stamp
touch $@
clean:
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp
rm -f $(builddir)/build-stamp $(builddir)/configure-stamp
# Add here commands to clean up after the build process.
-$(MAKE) -C $(srcdir) distclean
@ -72,6 +74,8 @@ clean:
rm -f $(addprefix debian/,$(DEBIAN_FILES))
dh_clean
test $(builddir) != $(srcdir) && rmdir $(builddir)
install: build
dh_testdir
dh_testroot
@ -79,7 +83,7 @@ install: build
dh_installdirs
# Add here commands to install the package into debian/tmp.
$(MAKE) -C $(srcdir) install DESTDIR=`pwd`/debian/tmp
$(MAKE) -C $(builddir) install DESTDIR=`pwd`/debian/tmp
# Build architecture-independent files here.