source: bootscripts-standard/boot-scripts/Makefile@ 9b8baa9

Last change on this file since 9b8baa9 was 4e4bd5f, checked in by William Harrington <kb0iic@…>, 11 years ago

Remove comment after DATE variable.

  • Property mode set to 100644
File size: 5.2 KB
RevLine 
[4e4bd5f]1DATE := 20140521
[28ff993]2VERSION := 3.0-${DATE}
[77aff82]3
4ETCDIR := /etc
5SHELL := /bin/bash
6EXTDIR := ${DESTDIR}${ETCDIR}
7MODE := 754
8DIRMODE := 755
9CONFMODE := 644
10
11all:
12 @grep "^install" Makefile | cut -d ":" -f 1
13 @echo "dist"
14 @echo "Select an appropriate install target from the above list" ; exit 1
15
16.PHONY: dist
17dist:
18 rm -rf "dist/boot-scripts-cross-lfs-$(VERSION)"
19 mkdir -p "dist/boot-scripts-cross-lfs-$(VERSION)"
20 tar --exclude dist -c * | tar -x -C "dist/boot-scripts-cross-lfs-$(VERSION)"
[b0e2458]21 (cd dist; tar -cJf "boot-scripts-cross-lfs-$(VERSION).tar.xz" "boot-scripts-cross-lfs-$(VERSION)")
[77aff82]22 rm -rf "dist/boot-scripts-cross-lfs-$(VERSION)"
23
24create-dirs:
25 install -d -m ${DIRMODE} ${EXTDIR}/rc.d/rc{0,1,2,3,4,5,6,sysinit}.d
26 install -d -m ${DIRMODE} ${EXTDIR}/rc.d/init.d
27 install -d -m ${DIRMODE} ${EXTDIR}/sysconfig
28
29create-service-dir:
30 install -d -m ${DIRMODE} ${EXTDIR}/sysconfig/network-devices/services
31
32install-boot-scripts: create-dirs create-service-dir
33 install -m ${MODE} clfs/init.d/checkfs ${EXTDIR}/rc.d/init.d/
34 install -m ${MODE} clfs/init.d/cleanfs ${EXTDIR}/rc.d/init.d/
35 install -m ${CONFMODE} clfs/init.d/functions ${EXTDIR}/rc.d/init.d/functions
36 install -m ${MODE} clfs/init.d/halt ${EXTDIR}/rc.d/init.d/
37 install -m ${MODE} clfs/init.d/localnet ${EXTDIR}/rc.d/init.d/
38 install -m ${MODE} clfs/init.d/mountfs ${EXTDIR}/rc.d/init.d/
39 install -m ${MODE} clfs/init.d/mountkernfs ${EXTDIR}/rc.d/init.d/
40 install -m ${MODE} clfs/init.d/rc ${EXTDIR}/rc.d/init.d/
41 install -m ${MODE} clfs/init.d/reboot ${EXTDIR}/rc.d/init.d/
42 install -m ${MODE} clfs/init.d/sendsignals ${EXTDIR}/rc.d/init.d/
43 install -m ${MODE} clfs/init.d/setclock ${EXTDIR}/rc.d/init.d/
44 install -m ${MODE} clfs/init.d/swap ${EXTDIR}/rc.d/init.d/
45 install -m ${MODE} clfs/init.d/udev ${EXTDIR}/rc.d/init.d/
46 ln -sf ../init.d/sendsignals ${EXTDIR}/rc.d/rc0.d/S60sendsignals
47 ln -sf ../init.d/mountfs ${EXTDIR}/rc.d/rc0.d/S70mountfs
48 ln -sf ../init.d/swap ${EXTDIR}/rc.d/rc0.d/S80swap
49 ln -sf ../init.d/halt ${EXTDIR}/rc.d/rc0.d/S99halt
50 ln -sf ../init.d/sendsignals ${EXTDIR}/rc.d/rc6.d/S60sendsignals
51 ln -sf ../init.d/mountfs ${EXTDIR}/rc.d/rc6.d/S70mountfs
52 ln -sf ../init.d/swap ${EXTDIR}/rc.d/rc6.d/S80swap
53 ln -sf ../init.d/reboot ${EXTDIR}/rc.d/rc6.d/S99reboot
54 ln -sf ../init.d/mountkernfs ${EXTDIR}/rc.d/rcsysinit.d/S00mountkernfs
55 ln -sf ../init.d/udev ${EXTDIR}/rc.d/rcsysinit.d/S10udev
56 ln -sf ../init.d/checkfs ${EXTDIR}/rc.d/rcsysinit.d/S20checkfs
57 ln -sf ../init.d/mountfs ${EXTDIR}/rc.d/rcsysinit.d/S30mountfs
58 ln -sf ../init.d/swap ${EXTDIR}/rc.d/rcsysinit.d/S40swap
59 ln -sf ../init.d/cleanfs ${EXTDIR}/rc.d/rcsysinit.d/S50cleanfs
60 ln -sf ../init.d/setclock ${EXTDIR}/rc.d/rcsysinit.d/S60setclock
61 if [ ! -f ${EXTDIR}/sysconfig/rc ]; then install -m ${CONFMODE} clfs/sysconfig/rc ${EXTDIR}/sysconfig/; fi
62 if [ ! -f ${EXTDIR}/sysconfig/createfiles ]; then install -m ${CONFMODE} clfs/sysconfig/createfiles ${EXTDIR}/sysconfig/; fi
63
64install-raq2: create-dirs
65 install -m ${MODE} clfs/init.d/paneld ${EXTDIR}/rc.d/init.d/
66 ln -sf ../init.d/paneld ${EXTDIR}/rc.d/rc0.d/K01paneld
67 ln -sf ../init.d/paneld ${EXTDIR}/rc.d/rc1.d/S99paneld
68 ln -sf ../init.d/paneld ${EXTDIR}/rc.d/rc2.d/S99paneld
69 ln -sf ../init.d/paneld ${EXTDIR}/rc.d/rc3.d/S99paneld
70 ln -sf ../init.d/paneld ${EXTDIR}/rc.d/rc4.d/S99paneld
71 ln -sf ../init.d/paneld ${EXTDIR}/rc.d/rc5.d/S99paneld
72 ln -sf ../init.d/paneld ${EXTDIR}/rc.d/rc6.d/K01paneld
73 if [ ! -f ${EXTDIR}/sysconfig/lcd ]; then install -m ${CONFMODE} clfs/sysconfig/lcd-raq2 ${EXTDIR}/sysconfig/lcd; fi
74
75install-raq3: create-dirs
76 install -m ${MODE} clfs/init.d/setlcd ${EXTDIR}/rc.d/init.d/
77 ln -sf ../init.d/setlcd ${EXTDIR}/rc.d/rc0.d/K01setlcd
78 ln -sf ../init.d/setlcd ${EXTDIR}/rc.d/rc1.d/S99setlcd
79 ln -sf ../init.d/setlcd ${EXTDIR}/rc.d/rc2.d/S99setlcd
80 ln -sf ../init.d/setlcd ${EXTDIR}/rc.d/rc3.d/S99setlcd
81 ln -sf ../init.d/setlcd ${EXTDIR}/rc.d/rc4.d/S99setlcd
82 ln -sf ../init.d/setlcd ${EXTDIR}/rc.d/rc5.d/S99setlcd
83 ln -sf ../init.d/setlcd ${EXTDIR}/rc.d/rc6.d/K01setlcd
84 if [ ! -f ${EXTDIR}/sysconfig/lcd ]; then install -m ${CONFMODE} clfs/sysconfig/lcd-raq3 ${EXTDIR}/sysconfig/lcd; fi
85
86install-lcd: create-dirs
87 if [ ! -f ${EXTDIR}/sysconfig/lcd ]; then install -m ${CONFMODE} clfs/sysconfig/lcd ${EXTDIR}/sysconfig/lcd; fi
88
89install-netboot: create-dirs create-service-dir
90 rm -rf ${EXTDIR}/rc.d
91 install -d -m ${DIRMODE} ${EXTDIR}/rc.d
92 install -m ${MODE} netboot/rc.0 ${EXTDIR}/rc.d/
93 install -m ${MODE} netboot/rc.1 ${EXTDIR}/rc.d/
94 install -m ${MODE} netboot/rc.sysinit ${EXTDIR}/rc.d/
95 if [ ! -f ${EXTDIR}/inittab ]; then install -m ${CONFMODE} netboot/inittab ${EXTDIR}/inittab; fi
96 ln -sf ../rc.d/rc.0 ${EXTDIR}/rc.d/rc.6
97 ln -sf ../rc.d/rc.1 ${EXTDIR}/rc.d/rc.2
98 ln -sf ../rc.d/rc.1 ${EXTDIR}/rc.d/rc.3
99 ln -sf ../rc.d/rc.1 ${EXTDIR}/rc.d/rc.4
100 ln -sf ../rc.d/rc.1 ${EXTDIR}/rc.d/rc.5
101
102.PHONY: all create-dirs create-service-dir \
103 install \
104 boot-scripts \
105 install-lcd \
106 install-raq2 \
107 install-raq3
Note: See TracBrowser for help on using the repository browser.