Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • debian/rules

    r46d4230 r483f8dd  
    1313build-arch: build-arch-stamp
    1414build-arch-stamp:
    15         [ -d debian ]
     15        if [ ! -d debian ]; then exit 1; fi
    1616        ./configure --debug=$(DEBUG) --prefix=/usr --etcdir=/etc/bitlbee --events=libevent
    1717        $(MAKE)
     
    2020
    2121clean:
    22         [ "`whoami`" = "root" -a -d debian ]
    23         rm -rf build-arch-stamp debian/bitlbee debian/*.substvars debian/files debian/bitlbee-dev
     22        if [ "`whoami`" != "root" -o ! -d debian ]; then exit 1; fi
     23        rm -rf build-arch-stamp debian/bitlbee debian/*.substvars debian/files
    2424        -$(MAKE) distclean
    2525#       -$(MAKE) -C doc/ clean
     
    2727
    2828install-arch: build-arch
    29         [ "`whoami`" = "root" -a -d debian ]
     29        if [ "`whoami`" != "root" -o ! -d debian ]; then exit 1; fi
    3030        mkdir -p debian/bitlbee/DEBIAN/
    3131        $(MAKE) install install-etc DESTDIR=`pwd`/debian/bitlbee
     
    3535        cp doc/user-guide/user-guide.html debian/bitlbee/usr/share/doc/bitlbee/
    3636
    37 install-indep: install-arch
    38         [ "`whoami`" = "root" -a -d debian ]
    39         mkdir -p debian/bitlbee-dev/DEBIAN/
    40         $(MAKE) install-dev DESTDIR=`pwd`/debian/bitlbee-dev
    41 
    42         mkdir -p debian/bitlbee-dev/usr/share/doc/bitlbee-dev/
    43 
    4437binary-arch: build-arch install-arch
    45         [ "`whoami`" = "root" -a -d debian ]
     38        if [ "`whoami`" != "root" -o ! -d debian ]; then exit 1; fi
    4639
    4740        chmod 755 debian/post* debian/pre* debian/config debian/bitlbee.init
     
    5952                        doc/bitlbee/examples/* man/man8/bitlbee.8 man/man5/bitlbee.conf.5
    6053       
    61         chown -R root:root debian/bitlbee/
     54        chown -R root.root debian/bitlbee/
    6255        find debian/bitlbee/usr/share/ -type d -exec chmod 755 {} \;
    6356        find debian/bitlbee/usr/share/ -type f -exec chmod 644 {} \;
     
    8477        dpkg --build debian/bitlbee ..
    8578
    86 binary-indep: install-indep
    87         [ "`whoami`" = "root" -a -d debian ]
     79debug-build:
     80        BITLBEE_VERSION=\"`date +%Y%m%d`-`hostname`-debug\" debian/rules clean binary DEBUG=1
    8881
    89         chown -R root.root debian/bitlbee-dev/
    90         find debian/bitlbee-dev/usr/share/ -type d -exec chmod 755 {} \;
    91         find debian/bitlbee-dev/usr/share/ -type f -exec chmod 644 {} \;
     82binary: binary-arch
     83build: build-arch
     84install: install-arch
    9285
    93         cp debian/changelog debian/bitlbee-dev/usr/share/doc/bitlbee-dev/changelog.Debian
    94         gzip -9 debian/bitlbee-dev/usr/share/doc/bitlbee-dev/changelog.Debian
    95         cp debian/copyright debian/bitlbee-dev/usr/share/doc/bitlbee-dev/copyright
    96 
    97         cd debian/bitlbee-dev; \
    98                 find usr -type f -exec md5sum {} \; > DEBIAN/md5sums
    99 
    100         dpkg-gencontrol -ldebian/changelog -isp -pbitlbee-dev -Pdebian/bitlbee-dev
    101 
    102         dpkg --build debian/bitlbee-dev ..
    103 
    104 binary: binary-arch binary-indep
    105 build: build-arch
    106 install: install-arch install-indep
    107 
    108 .PHONY: build-arch build clean binary-arch binary install-arch install binary-indep install-indep
     86.PHONY: build-arch build clean binary-arch binary install-arch install
Note: See TracChangeset for help on using the changeset viewer.