Last change
on this file since fe1b471 was fe1b471, checked in by Jim Gifford <clfs@…>, 17 years ago |
Makefile Updates
|
-
Property mode
set to
100644
|
File size:
1.1 KB
|
Rev | Line | |
---|
[97ad60e] | 1 | ETCDIR=/etc
|
---|
| 2 | EXTDIR=${DESTDIR}${ETCDIR}
|
---|
| 3 | MODE=754
|
---|
| 4 | DIRMODE=755
|
---|
| 5 | CONFMODE=644
|
---|
| 6 |
|
---|
[fe1b471] | 7 | all:
|
---|
| 8 | @grep "^install" Makefile | cut -d ":" -f 1
|
---|
| 9 | @echo "Select an appropriate install target from the above list" ; exit 1
|
---|
[97ad60e] | 10 |
|
---|
| 11 | create-dirs:
|
---|
[fe1b471] | 12 | install -d -m ${DIRMODE} ${EXTDIR}/rc.d/{init.d,start,stop}
|
---|
[97ad60e] | 13 |
|
---|
[fe1b471] | 14 | install-bootscripts: create-dirs
|
---|
[97ad60e] | 15 | install -m ${CONFMODE} clfs/rc.d/init.d/functions ${EXTDIR}/rc.d/init.d/
|
---|
| 16 | install -m ${MODE} clfs/rc.d/startup ${EXTDIR}/rc.d/
|
---|
| 17 | install -m ${MODE} clfs/rc.d/shutdown ${EXTDIR}/rc.d/
|
---|
| 18 | install -m ${MODE} clfs/rc.d/init.d/network ${EXTDIR}/rc.d/init.d/
|
---|
| 19 | install -m ${MODE} clfs/rc.d/init.d/syslog ${EXTDIR}/rc.d/init.d/
|
---|
| 20 | ln -sf ../init.d/syslog ${EXTDIR}/rc.d/start/S05syslog
|
---|
| 21 | ln -sf ../init.d/syslog ${EXTDIR}/rc.d/stop/K99syslog
|
---|
| 22 | ln -sf ../init.d/network ${EXTDIR}/rc.d/start/S10network
|
---|
| 23 | ln -sf ../init.d/network ${EXTDIR}/rc.d/stop/K80network
|
---|
| 24 |
|
---|
| 25 | install-dropbear: create-dirs
|
---|
| 26 | install -m ${MODE} clfs/rc.d/init.d/sshd ${EXTDIR}/rc.d/init.d/
|
---|
| 27 | ln -sf ../init.d/sshd ${EXTDIR}/rc.d/start/S30sshd
|
---|
| 28 | ln -sf ../init.d/sshd ${EXTDIR}/rc.d/stop/K30sshd
|
---|
| 29 |
|
---|
| 30 | .PHONY: all create-dirs install install-dropbear
|
---|
Note:
See
TracBrowser
for help on using the repository browser.