Changeset 5888 in /cluster/svnroot


Ignore:
Timestamp:
Feb 19, 2017 6:58:14 PM (4 years ago)
Author:
skylar
Message:

add install-deb target re #997

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bccd-ng/branches/skylar/bccd-3.4.0-build_ng/Makefile

    r5887 r5888  
    77export VERSION          :=      3.4.0
    88export KERN_REV         :=      4.0.0bccd
     9
     10.PHONY: install-iso install-deb
    911
    1012build:
     
    3133                --after-install "$(WORKSPACE)/bin/deb/bccd_deb_after_install"
    3234
    33 debootstrap: target/bccd.noarch.deb
     35debootstrap:
    3436        $(MKDIR_P) "$(WORKSPACE)/debootstrap"
    35         /usr/bin/sudo /usr/sbin/debootstrap \
    36                 --exclude=linux-image-2.6.32-5,linux-image-2.6.32-5-amd64,linux-image-2.6.32-5-i686 \
    37                 --arch amd64 \
    38                 sid \
    39                 "$(WORKSPACE)/debootstrap" \
    40                 http://debmirror.cluster.earlham.edu
    41         /bin/cp $< "$(WORKSPACE)/debootstrap/tmp"
     37        if [ -f "$(WORKSPACE)"/target/debootstrap.tar ]; then \
     38                /bin/tar -C "$(WORKSPACE)" -xf "$(WORKSPACE)"/target/debootstrap.tar \
     39        else \
     40                /usr/bin/sudo /usr/sbin/debootstrap \
     41                        --exclude=linux-image-2.6.32-5,linux-image-2.6.32-5-amd64,linux-image-2.6.32-5-i686 \
     42                        --arch amd64 \
     43                        sid \
     44                        "$(WORKSPACE)/debootstrap" \
     45                        http://debmirror.cluster.earlham.edu
     46        fi
     47
     48install-deb: target/bccd.noarch.deb debootstrap
     49        /bin/cp -v "$<" "$(WORKSPACE)/debootstrap/tmp"
    4250        "$(WORKSPACE)/bin/bccd_install_pkgs"
    4351
    4452target/debootstrap.tar: debootstrap
    45         /bin/tar -C "$(WORKSPACE)"/debootstrap -cf "$(@)"
     53        /bin/tar -C "$(WORKSPACE)" -cf "$(@)" "$<"
    4654
    4755iso/live/initrd.img: debootstrap
Note: See TracChangeset for help on using the changeset viewer.