Changeset 18bce0c in clfs-embedded for bootscripts/Makefile


Ignore:
Timestamp:
Sep 14, 2009, 12:24:57 AM (15 years ago)
Author:
jim <jim@…>
Branches:
master
Children:
bbf155c
Parents:
d312716
Message:

Added make dist to Bootscripts Makefile

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bootscripts/Makefile

    rd312716 r18bce0c  
    1 ETCDIR=/etc
    2 EXTDIR=${DESTDIR}${ETCDIR}
    3 MODE=754
    4 DIRMODE=755
    5 CONFMODE=644
     1VERSION         := 1.0-pre5
    62
    7 all: install
     3ETCDIR          := /etc
     4EXTDIR          := ${DESTDIR}${ETCDIR}
     5MODE            := 754
     6DIRMODE         := 755
     7CONFMODE        := 644
     8
     9all:
     10        @grep "^install" Makefile | cut -d ":" -f 1
     11        @echo dist
     12        @echo "Select an appropriate install target from the above list" ; exit 1
     13
     14dist:
     15        rm -rf "dist/bootscripts-clfs-embedded-$(VERSION)"
     16        mkdir -p "dist/bootscripts-clfs-embedded-$(VERSION)"
     17        tar --exclude dist -c * | tar -x -C "dist/bootscripts-clfs-embedded-$(VERSION)"
     18        (cd dist; tar -cjf "bootscripts-clfs-embedded-$(VERSION).tar.bz2" "bootscripts-clfs-embedded-$(VERSION)")
     19        rm -rf "dist/bootscripts-clfs-embedded-$(VERSION)"
    820
    921create-dirs:
    10         install -d -m ${DIRMODE} ${EXTDIR}/rc.d/start
    11         install -d -m ${DIRMODE} ${EXTDIR}/rc.d/stop
    12         install -d -m ${DIRMODE} ${EXTDIR}/rc.d/init.d
     22        install -d -m ${DIRMODE} ${EXTDIR}/rc.d/{init.d,start,stop}
    1323
    14 install: create-dirs
     24install-bootscripts: create-dirs
    1525        install -m ${CONFMODE} clfs/rc.d/init.d/functions ${EXTDIR}/rc.d/init.d/
    1626        install -m ${MODE} clfs/rc.d/startup         ${EXTDIR}/rc.d/
     
    2636        ln -sf ../init.d/bridge ${EXTDIR}/rc.d/stop/K81bridge
    2737
     38install-bcm47xx: create-dirs
     39        install -m ${MODE} clfs/rc.d/init.d/bcm47xx-switch ${EXTDIR}/rc.d/init.d/
     40        ln -sf ../init.d/bcm47xx-switch ${EXTDIR}/rc.d/start/S08bcm47xx-switch
     41        ln -sf ../init.d/bcm47xx-switch ${EXTDIR}/rc.d/stop/K82bcm47xx-switch
     42
    2843install-dropbear: create-dirs
    29         install -m ${MODE} clfs/rc.d/init.d/sshd   ${EXTDIR}/rc.d/init.d/
    30         ln -sf ../init.d/sshd ${EXTDIR}/rc.d/start/S30sshd
    31         ln -sf ../init.d/sshd ${EXTDIR}/rc.d/stop/K30sshd
     44        install -m ${MODE} clfs/rc.d/init.d/sshd   ${EXTDIR}/rc.d/init.d/
     45        ln -sf ../init.d/sshd ${EXTDIR}/rc.d/start/S30sshd
     46        ln -sf ../init.d/sshd ${EXTDIR}/rc.d/stop/K30sshd
    3247
    3348install-hostapd: create-dirs
    34         install -m ${MODE} clfs/rc.d/init.d/hostapd ${EXTDIR}/rc.d/init.d
    35         ln -sf ../init.d/hostapd ${EXTDIR}/rc.d/start/S08hostapd
    36         ln -sf ../init.d/hostapd ${EXTDIR}/rc.d/stop/K82hostapd
     49        install -m ${MODE} clfs/rc.d/init.d/hostapd ${EXTDIR}/rc.d/init.d
     50        ln -sf ../init.d/hostapd ${EXTDIR}/rc.d/start/S08hostapd
     51        ln -sf ../init.d/hostapd ${EXTDIR}/rc.d/stop/K82hostapd
    3752
    38 install-bcm47xx: create-dirs
    39         install -m ${MODE} clfs/rc.d/init.d/bcm47xx-switch ${EXTDIR}/rc.d/init.d/
    40         ln -sf ../init.d/bcm47xx-switch ${EXTDIR}/rc.d/start/S08bcm47xx-switch
    41         ln -sf ../init.d/bcm47xx-switch ${EXTDIR}/rc.d/stop/K82bcm47xx-switch
    42 
    43 .PHONY: all create-dirs install install-dropbear install-bridge
     53.PHONY: dist all create-dirs install install-bcm47xx install-dropbear \
     54        install-hostapd
Note: See TracChangeset for help on using the changeset viewer.