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
RevLine 
[5d96f6a]1VERSION := 1.0-pre4
2
3ETCDIR := /etc
4EXTDIR := ${DESTDIR}${ETCDIR}
5MODE := 754
6DIRMODE := 755
7CONFMODE := 644
[97ad60e]8
[fe1b471]9all:
10 @grep "^install" Makefile | cut -d ":" -f 1
[5d96f6a]11 @echo dist
[fe1b471]12 @echo "Select an appropriate install target from the above list" ; exit 1
[97ad60e]13
[5d96f6a]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
[97ad60e]22create-dirs:
[fe1b471]23 install -d -m ${DIRMODE} ${EXTDIR}/rc.d/{init.d,start,stop}
[97ad60e]24
[fe1b471]25install-bootscripts: create-dirs
[97ad60e]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.