summaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
authorDavid Schleef <ds@schleef.org>2001-08-11 03:19:52 +0000
committerDavid Schleef <ds@schleef.org>2001-08-11 03:19:52 +0000
commitf0446fcb9cc4afdb7a0f11263815e04699c12346 (patch)
treed08b423f19c10876ec2a370015a445bc192e7553 /debian/rules
parent7f133fafec7a56b49ef62c4ef5b0d43d5f482364 (diff)
Change name of package to uclibc-toolchain. Various changes
following the Makefile changes.
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules24
1 files changed, 10 insertions, 14 deletions
diff --git a/debian/rules b/debian/rules
index 3c6603cc3..1922cfab0 100755
--- a/debian/rules
+++ b/debian/rules
@@ -27,7 +27,7 @@ endif
p_dev=libuclibc-dev$(target_suffix)
p_lib=libuclibc0$(target_suffix)
-p_gcc=uclibc$(target_suffix)-gcc
+p_gcc=uclibc$(target_suffix)-toolchain
debian/control: debian/control.in debian/rules
sed s/_TARGET_/$(target_suffix)/ debian/control.in >debian/control
@@ -45,9 +45,10 @@ ifneq ($(target),$(DEB_HOST_GNU_CPU))
echo 'CROSS = $(target)-linux-' >>Config
endif
echo 'DOPIC = true' >>Config
- echo 'PREFIX = /usr' >>Config
- echo 'DEVEL_PREFIX = $$(PREFIX)/$$(TARGET_ARCH)-linux-uclibc' >>Config
- echo 'TARGET_PREFIX = /' >>Config
+ echo 'SYSTEM_DEVEL_PREFIX = /' >>Config
+ echo 'DEVEL_PREFIX = /usr/$$(TARGET_ARCH)-linux-uclibc' >>Config
+ echo 'SHARED_LIB_LOADER_PATH = /lib' >>Config
+ #echo 'TARGET_PREFIX = /' >>Config
ifeq ($(with_shared_libs),n)
echo 'HAVE_SHARED = false' >>Config
endif
@@ -62,6 +63,8 @@ clean: debian/control
dh_testroot
rm -f build-stamp
+ rm -f debian/$(p_dev)
+
# Add here commands to clean up after the build process.
-$(MAKE) clean
@@ -77,9 +80,9 @@ install: build debian/control
ln -s tmp debian/$(p_dev)
# Add here commands to install the package into debian/tmp.
- $(MAKE) install_dev DESTDIR=`pwd`/debian/$(p_dev)
- $(MAKE) install_runtime DESTDIR=`pwd`/debian/$(p_lib)
- $(MAKE) install_gcc DESTDIR=`pwd`/debian/$(p_gcc)
+ $(MAKE) install_dev PREFIX=`pwd`/debian/$(p_dev)
+ $(MAKE) install_runtime PREFIX=`pwd`/debian/$(p_lib)
+ $(MAKE) install_gcc PREFIX=`pwd`/debian/$(p_gcc)
install -d debian/$(p_gcc)/usr/share/man/man1
install -m 644 debian/uclibc-gcc.1 \
@@ -104,13 +107,6 @@ ifeq ($(target),$(DEB_HOST_GNU_CPU))
debian/$(p_lib)/lib/ld-uClibc.so.0
endif
endif
-
- install -d debian/$(p_gcc)/usr/bin
- mv debian/$(p_gcc)/usr/$(target)-linux-uclibc/bin/$(target)-* \
- debian/$(p_gcc)/usr/bin
- install -d debian/$(p_lib)/usr/bin
- mv debian/$(p_lib)/usr/$(target)-linux-uclibc/bin/$(target)-* \
- debian/$(p_lib)/usr/bin
# Build architecture-independent files here.
binary-indep: