source: bootscripts-embedded/Makefile

Last change on this file was 87cfd4f, checked in by Andrew Bradford <andrew@…>, 7 years ago

Makefile: Rearrange targets so 'install-bootscripts' is default

In this way, performing a 'make' with the default target selected will
only install the core critical bootscripts for startup, shutdown, and
syslog. If you want the other bootscripts, you install them manually or
by using 'make all'.

  • Property mode set to 100644
File size: 1.2 KB
Line 
1ETCDIR := /etc
2EXTDIR := ${DESTDIR}${ETCDIR}
3MODE := 754
4DIRMODE := 755
5CONFMODE := 644
6
7install-bootscripts: create-dirs
8 install -m ${CONFMODE} clfs/rc.d/init.d/functions ${EXTDIR}/rc.d/init.d/
9 install -m ${MODE} clfs/rc.d/startup ${EXTDIR}/rc.d/
10 install -m ${MODE} clfs/rc.d/shutdown ${EXTDIR}/rc.d/
11 install -m ${MODE} clfs/rc.d/init.d/syslog ${EXTDIR}/rc.d/init.d/
12 ln -sf ../init.d/syslog ${EXTDIR}/rc.d/start/S05syslog
13 ln -sf ../init.d/syslog ${EXTDIR}/rc.d/stop/K99syslog
14
15all: install-bootscripts install-dropbear install-netplug
16
17create-dirs:
18 install -d -m ${DIRMODE} ${EXTDIR}/rc.d/init.d
19 install -d -m ${DIRMODE} ${EXTDIR}/rc.d/start
20 install -d -m ${DIRMODE} ${EXTDIR}/rc.d/stop
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
27install-netplug: create-dirs
28 install -m ${MODE} clfs/rc.d/init.d/netplugd ${EXTDIR}/rc.d/init.d/
29 ln -sf ../init.d/netplugd ${EXTDIR}/rc.d/start/S10netplugd
30 ln -sf ../init.d/netplugd ${EXTDIR}/rc.d/stop/K90netplugd
31
32.PHONY: all create-dirs install-bootscripts install-dropbear install-netplug
Note: See TracBrowser for help on using the repository browser.