changelog tags changeset manifest revisions annotate raw

Makefile

changeset 32: 63ce9d584cb8
parent:7990ccf3ab3c
author: frsyuki@vcore
date: Wed Jun 20 16:05:21 2007 +0900 (13 years ago)
permissions: -rw-r--r--
1FILES = breakpoint.rb cleanup.rb disks.rb disks_block.rb disks_detect.rb disks_guess.rb dynpath.rb fallback.rb fs_ark.rb fs_bootmedium.rb fs_fixed.rb fs_initrd.rb fs_kmodule.rb fs_proc_sys.rb fs_shadow.rb fs_sysroot.rb fsutils.rb hardware.rb hardware_detect.rb hardware_load.rb hardware_source.rb log.rb master.rb network.rb network_setup.rb parameters.rb process.rb sharedblock.rb vfs.rb
2FILES_LIB = thread.rb
3
4default: xxx
5
6
7memo: $(FILES)
8 @grep -n -E "XXX|FIXME|TODO" $(FILES) > memo || true
9
10.PHONY: xxx todo fixme syntax
11xxx: memo
12 @grep --color XXX memo || true
13xx: xxx
14x: xxx
15
16fixme: memo
17 @grep --color FIXME memo || true
18fixm: fixme
19fix: fixme
20fi: fixme
21f: fixme
22
23todo: memo
24 @grep --color TODO memo | | true
25tod: todo
26to: todo
27t: todo
28
29
30syntax:
31 @for a in $(FILES);do echo -en "$$a:\t\t"; ruby -c $$a; done
32synta: syntax
33synt: syntax
34syn: syntax
35sy: syntax
36s: syntax
37
38
39.PHONY: viver.d
40viver.d:
41 @if [ `id -u` != "0" ];then echo "not root"; false; fi
42 rm -rf $@
43 cp -a initramfs $@
44 cp $(FILES) $@/
45 cp $(FILES_LIB) $@/
46 mknod $@/dev/null c 1 3
47 chmod 0666 $@/dev/null
48 mknod $@/dev/console c 5 1
49 chmod 0600 $@/dev/console
50 mknod $@/dev/random c 1 8
51 chmod 0666 $@/dev/random
52 mknod $@/dev/urandom c 1 9
53 chmod 0444 $@/dev/urandom
54 cp /sbin/ldconfig $@/
55 cd $@ && chroot ./ ./ldconfig
56 rm -f $@/ldconfig
57
58
59.PHONY: viverrd.gz
60viverrd.gz: viver.d
61 cd viver.d && find | cpio --quiet -c -o | gzip -9 -c > ../$@
62
63
64viverboot.iso: viverrd.gz
65 cp -a viverrd.gz bootsuite/boot/
66 mkisofs -U -D -J -R \
67 -V "VIVER_100_BootDisk" \
68 -o "$@" \
69 -b boot/grub/stage2_eltorito \
70 -c boot/grub/boot.cat \
71 -no-emul-boot \
72 -boot-load-size 4 \
73 -boot-info-table \
74 -gid 0 \
75 -uid 0 \
76 bootsuite
77