~ubuntu-branches/ubuntu/wily/debootstrap/wily

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Joey Hess
  • Date: 2010-09-26 13:18:31 UTC
  • mfrom: (5.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20100926131831-aevtba1z0a4nqc3z
Tags: 1.0.25
* Remove debug statement that slipped in.
* Add test to guard against devices.tar.gz being empty.
* /dev/MAKEDEV cannot be relied on (udev likes to make it a symlink to
  true). Always use /sbin/MAKEDEV. Closes: #598080

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# avoid dpkg-dev dependency; fish out the version with sed
2
2
VERSION := $(shell sed 's/.*(\(.*\)).*/\1/; q' debian/changelog)
3
3
 
4
 
MAKEDEV := $(shell if [ -e /dev/MAKEDEV ]; then echo /dev/MAKEDEV; else echo /sbin/MAKEDEV; fi)
 
4
MAKEDEV := /sbin/MAKEDEV
5
5
 
6
6
all: devices.tar.gz
7
7
clean:
29
29
        chmod 755 dev
30
30
        (cd dev && $(MAKEDEV) std ptmx fd consoleonly)
31
31
        tar cf - dev | gzip -9 >devices.tar.gz
 
32
        @if [ "$$(tar tvf devices.tar.gz | wc -l)" -lt 2 ]; then \
 
33
                echo " ** devices.tar.gz is empty!" >&2; \
 
34
                exit 1; \
 
35
        fi
32
36
        rm -rf dev