Ignore:
Timestamp:
Jan 8, 2007, 11:31:22 PM (18 years ago)
Author:
Bruno Cornec
Message:

merge -r978:1042 $SVN_M/branches/stable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mindi-busybox/distributions/debian/rules

    r823 r1043  
    99PACKAGE_NAME = mindi-busybox
    1010
    11 configure:
    12 # Nothing to configure in this package.
     11# Don't set any compiler flags - busybox does that just fine
    1312
    14 build:
    15 # Nothing to build in this package.
     13configure: configure-stamp
     14
     15configure-stamp:
     16    dh_testdir
     17    touch configure-stamp
     18
     19# Build both architecture dependent and independent
     20build: build-stamp
     21
     22build-stamp: configure-stamp
     23    dh_testdir
     24
     25    # Compile the package.
     26    mv .config .config.sav
     27    $(MAKE) distclean
     28    mv .config.sav .config
     29    $(MAKE) oldconfig
     30    $(MAKE) busybox
     31
     32    touch build-stamp
    1633
    1734clean:
    1835    dh_testdir
    1936    dh_testroot
     37    rm -f build-stamp configure-stamp
     38    # Clean temporary document directory
     39    rm -rf debian/doc-temp
     40    # Clean up.
     41    -mv .config .config.sav
     42    -$(MAKE) distclean
     43    -mv .config.sav .config
     44    -rm -f busybox
     45
    2046    dh_clean
    2147
    22 install:
     48# Install architecture dependent and independent
     49install: build
    2350    dh_testdir
    2451    dh_testroot
    2552    dh_clean -k
    2653    dh_installdirs
    27     # Build the installation tree:
    28     ( export RPMBUILDMINDI=true && export PREFIX=$(CURDIR)/debian/$(PACKAGE_NAME)/usr && export CONFDIR=$(CURDIR)/debian/$(PACKAGE_NAME)/etc && ./install.sh )
    2954
    30 # Build architecture-independent files here.
    31 binary-indep: install
    32 # We have nothing to do by default.
     55    # Install the package files into build directory:
     56    # - start with upstream make install
     57    $(MAKE) install PREFIX=$(CURDIR)/debian/$(PACKAGE_NAME)/usr/lib/mindi/rootfs
     58    # - copy doc
     59    mkdir -p debian/doc-temp
     60    cp -a ChangeLog INSTALL LICENSE AUTHORS README TODO changelog svn.log debian/doc-temp
    3361
    34 # Build architecture-dependent files here.
    35 binary-arch: install
     62    dh_install -s
     63
     64# Build architecture independant packages using the common target.
     65binary-indep: build install
     66    # None
     67
     68# Build architecture dependant packages using the common target.
     69binary-arch: build install
    3670    dh_testdir
    3771    dh_testroot
    38     dh_installchangelogs ChangeLog
    3972    dh_installdocs
    40     dh_installexamples
    41     dh_link
    4273    dh_strip
    4374    dh_compress
     
    4879    dh_builddeb
    4980
    50 binary: binary-indep binary-arch
     81binary: binary-arch binary-indep
    5182.PHONY: build clean binary-indep binary-arch binary install configure
Note: See TracChangeset for help on using the changeset viewer.