rm /usr/lib/libcdck.*
[debian/cdck.git] / debian / rules
index 3dd970c2e9fa5a87f03abc4fd2df19d48dc1d1aa..85a032d508be135df853fc854ba94488ef351e2a 100755 (executable)
@@ -26,7 +26,6 @@ endif
 
 config.status: configure
        dh_testdir
 
 config.status: configure
        dh_testdir
-       # Add here commands to configure the package.
        CFLAGS="$(CFLAGS) -Wl,-z,defs" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
 
 
        CFLAGS="$(CFLAGS) -Wl,-z,defs" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
 
 
@@ -34,10 +33,7 @@ build: build-stamp
 
 build-stamp:  config.status
        dh_testdir
 
 build-stamp:  config.status
        dh_testdir
-
-       # Add here commands to compile the package.
        $(MAKE)
        $(MAKE)
-
        touch build-stamp
 
 clean:
        touch build-stamp
 
 clean:
@@ -45,7 +41,6 @@ clean:
        dh_testroot
        rm -f build-stamp 
 
        dh_testroot
        rm -f build-stamp 
 
-       # Add here commands to clean up after the build process.
        -$(MAKE) distclean
 ifneq "$(wildcard /usr/share/misc/config.sub)" ""
        cp -f /usr/share/misc/config.sub config.sub
        -$(MAKE) distclean
 ifneq "$(wildcard /usr/share/misc/config.sub)" ""
        cp -f /usr/share/misc/config.sub config.sub
@@ -54,7 +49,6 @@ ifneq "$(wildcard /usr/share/misc/config.guess)" ""
        cp -f /usr/share/misc/config.guess config.guess
 endif
 
        cp -f /usr/share/misc/config.guess config.guess
 endif
 
-
        dh_clean 
 
 install: build
        dh_clean 
 
 install: build
@@ -62,10 +56,8 @@ install: build
        dh_testroot
        dh_clean -k 
        dh_installdirs
        dh_testroot
        dh_clean -k 
        dh_installdirs
-
-       # Add here commands to install the package into debian/cdck.
        $(MAKE) install DESTDIR=$(CURDIR)/debian/cdck
        $(MAKE) install DESTDIR=$(CURDIR)/debian/cdck
-
+       rm -rf $(CURDIR)/debian/cdck/usr/lib
 
 # Build architecture-independent files here.
 binary-indep: build install
 
 # Build architecture-independent files here.
 binary-indep: build install
@@ -90,7 +82,7 @@ binary-arch: build install
 #      dh_installinfo
        dh_installman
 #      dh_link
 #      dh_installinfo
        dh_installman
 #      dh_link
-       dh_strip -Xlibcdck.la -Xlibcdck.a
+       dh_strip
        dh_compress
        dh_fixperms
 #      dh_perl
        dh_compress
        dh_fixperms
 #      dh_perl