"Fossies" - the Fresh Open Source Software Archive

Member "xarchive-0.2.8-6/debian/rules" (25 Oct 2005, 1753 Bytes) of package /linux/privat/old/xarchive-0.2.8-6.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Make source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 #!/usr/bin/make -f
    2 # -*- makefile -*-
    3 
    4 # These are used for cross-compiling and for saving the configure script
    5 # from having to guess our platform (since we know it already)
    6 DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
    7 DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
    8 
    9 
   10 CFLAGS = -Wall -g
   11 
   12 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
   13     CFLAGS += -O0
   14 else
   15     CFLAGS += -O2
   16 endif
   17 
   18 config.status: configure
   19     dh_testdir
   20     CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
   21 
   22 
   23 build: build-stamp
   24 
   25 build-stamp:  config.status
   26     dh_testdir
   27     $(MAKE)
   28     touch build-stamp
   29 
   30 clean:
   31     dh_testdir
   32     dh_testroot
   33     rm -f build-stamp 
   34 
   35     # Add here commands to clean up after the build process.
   36     -$(MAKE) distclean
   37 ifneq "$(wildcard /usr/share/misc/config.sub)" ""
   38     cp -f /usr/share/misc/config.sub config.sub
   39 endif
   40 ifneq "$(wildcard /usr/share/misc/config.guess)" ""
   41     cp -f /usr/share/misc/config.guess config.guess
   42 endif
   43 
   44 
   45     dh_clean 
   46 
   47 install: build
   48     dh_testdir
   49     dh_testroot
   50     dh_clean -k 
   51     dh_installdirs
   52 
   53     # Add here commands to install the package into debian/xarchive.
   54     $(MAKE) install DESTDIR=$(CURDIR)/debian/xarchive
   55 
   56 
   57 # Build architecture-independent files here.
   58 binary-indep: build install
   59 # We have nothing to do by default.
   60 
   61 # Build architecture-dependent files here.
   62 binary-arch: build install
   63     dh_testdir
   64     dh_testroot
   65     dh_installchangelogs
   66     dh_installdocs
   67     dh_installmenu
   68     dh_link
   69     dh_strip
   70     dh_compress -Xxarchive.1.txt
   71     dh_fixperms
   72     dh_installdeb
   73     dh_shlibdeps
   74     dh_gencontrol
   75     dh_md5sums
   76     dh_builddeb
   77 
   78 binary: binary-indep binary-arch
   79 .PHONY: build clean binary-indep binary-arch binary install