source: bootscripts-embedded/Makefile@ 5d96f6a

Last change on this file since 5d96f6a was 5d96f6a, checked in by Joe Ciccone <jciccone@…>, 15 years ago

Add a dist make target to the Makefile for release tarballs.

  • Property mode set to 100644
File size: 1.5 KB
Line 
1VERSION := 1.0-pre4
2
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
14.PHONY: dist
15dist:
16 rm -rf "dist/bootscripts-clfs-embedded-$(VERSION)"
17 mkdir -p "dist/bootscripts-clfs-embedded-$(VERSION)"
18 tar --exclude dist -c * | tar -x -C "dist/bootscripts-clfs-embedded-$(VERSION)"
19 (cd dist; tar -cjf "bootscripts-clfs-embedded-$(VERSION).tar.bz2" "bootscripts-clfs-embedded-$(VERSION)")
20 rm -rf "dist/bootscripts-clfs-embedded-$(VERSION)"
21
22create-dirs:
23 install -d -m ${DIRMODE} ${EXTDIR}/rc.d/{init.d,start,stop}
24
25install-bootscripts: create-dirs
26 install -m ${CONFMODE} clfs/rc.d/init.d/functions ${EXTDIR}/rc.d/init.d/
27 install -m ${MODE} clfs/rc.d/startup ${EXTDIR}/rc.d/
28 install -m ${MODE} clfs/rc.d/shutdown ${EXTDIR}/rc.d/
29 install -m ${MODE} clfs/rc.d/init.d/network ${EXTDIR}/rc.d/init.d/
30 install -m ${MODE} clfs/rc.d/init.d/syslog ${EXTDIR}/rc.d/init.d/
31 ln -sf ../init.d/syslog ${EXTDIR}/rc.d/start/S05syslog
32 ln -sf ../init.d/syslog ${EXTDIR}/rc.d/stop/K99syslog
33 ln -sf ../init.d/network ${EXTDIR}/rc.d/start/S10network
34 ln -sf ../init.d/network ${EXTDIR}/rc.d/stop/K80network
35
36install-dropbear: create-dirs
37 install -m ${MODE} clfs/rc.d/init.d/sshd ${EXTDIR}/rc.d/init.d/
38 ln -sf ../init.d/sshd ${EXTDIR}/rc.d/start/S30sshd
39 ln -sf ../init.d/sshd ${EXTDIR}/rc.d/stop/K30sshd
40
41.PHONY: all create-dirs install install-dropbear
Note: See TracBrowser for help on using the repository browser.