File: Makefile

package info (click to toggle)
silo 0.9.8-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 988 kB
  • ctags: 2,245
  • sloc: ansic: 10,619; asm: 2,783; makefile: 405; perl: 77; sh: 3
file content (29 lines) | stat: -rw-r--r-- 682 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
DIRS=first second silo

all clean dep depend:
	@for I in $(DIRS); do cd $$I; make $@ || exit 1; cd ..; done

ifeq (Linux,$(shell uname))
install:
	if [ \! -d /boot ]; then mkdir /boot; fi
	cp -f -b boot/*.b /boot
	if [ \! -f /etc/silo.conf ]; then cp etc/silo.conf /etc; fi
	cp -f -b sbin/silo /sbin
	/sbin/silo -f
else
ifeq (SunOS,$(shell uname -s))
ifeq (5.,$(findstring 5.,$(shell uname -r)))
install:
	if [ \! -d /boot ]; then mkdir /boot; fi
	cp -f -b boot/*.b /boot
	if [ \! -f /etc/silo.conf ]; then cp etc/silo.conf /etc; fi
	misc/solarissilo -f
else
install:
	@echo SunOS SILO not yet supported
endif
else
install:
	@echo SILO for other platforms not supported
endif
endif