source: bootscripts-embedded/Makefile@ 959f0b4

Last change on this file since 959f0b4 was 47a846f, checked in by Andrew Bradford <andrew@…>, 11 years ago

Makefile: fix .PHONY

  • Property mode set to 100644
File size: 965 bytes
Line 
1ETCDIR := /etc
2EXTDIR := ${DESTDIR}${ETCDIR}
3MODE := 754
4DIRMODE := 755
5CONFMODE := 644
6
7all: install-bootscripts install-dropbear
8
9create-dirs:
10 install -d -m ${DIRMODE} ${EXTDIR}/rc.d/init.d
11 install -d -m ${DIRMODE} ${EXTDIR}/rc.d/start
12 install -d -m ${DIRMODE} ${EXTDIR}/rc.d/stop
13
14install-bootscripts: create-dirs
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/syslog ${EXTDIR}/rc.d/init.d/
19 ln -sf ../init.d/syslog ${EXTDIR}/rc.d/start/S05syslog
20 ln -sf ../init.d/syslog ${EXTDIR}/rc.d/stop/K99syslog
21
22install-dropbear: create-dirs
23 install -m ${MODE} clfs/rc.d/init.d/sshd ${EXTDIR}/rc.d/init.d/
24 ln -sf ../init.d/sshd ${EXTDIR}/rc.d/start/S30sshd
25 ln -sf ../init.d/sshd ${EXTDIR}/rc.d/stop/K30sshd
26
27.PHONY: all create-dirs install-bootscripts install-dropbear
Note: See TracBrowser for help on using the repository browser.