File: Makefile

package info (click to toggle)
raccess4vbox3 0.2.8.2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 2,008 kB
  • ctags: 34
  • sloc: tcl: 703; sh: 155; makefile: 125
file content (68 lines) | stat: -rw-r--r-- 1,592 bytes parent folder | download | duplicates (4)
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#
DESTDIR=

LIB	=$(DESTDIR)/usr/share/isdn/vbox
TCL_DIR	=$(LIB)/tcl
ULAW_DIR	=$(LIB)/ulaw
SKEL_DIR	=$(LIB)/skel
BIN_DIR	=$(LIB)/bin

# end configuration.

all: raccess.conf bin/notify ulaws docs

raccess.conf: Makefile
	sed -e s}\|ULAW_DIR\|}$(ULAW_DIR)}g \
		-e s}\|BIN_DIR\|}$(BIN_DIR)}g \
		< raccess.conf.tpl > raccess.conf

bin/notify: Makefile
	sed -e s}\|BIN_DIR\|}$(BIN_DIR)}g \
		< bin/notify.tpl > bin/notify

ulaws:
	$(MAKE) -C ulaw

install: all directories
	install -m 0644 tcl/raccess4vbox3.tcl \
		$(TCL_DIR)/raccess4vbox3.tcl
	install -m 0644 raccess.conf $(SKEL_DIR)/raccess.conf
	install -m 0644 vboxrc $(SKEL_DIR)/vboxrc
	install -m 0644 raccess/answeringmachine raccess/remoteaccess \
		raccess/sysinfo raccess/dialup \
		$(SKEL_DIR)/raccess/
	install -m 0644 msg/standard.ulaw $(LIB)/msg/
	install -m 0644 msg/beep.ulaw $(LIB)/msg/
	install -m 0755 bin/uptime bin/ip-eth0 bin/ip-eth1 \
		bin/vboxmail bin/notify \
		bin/[gs]etifstatus $(BIN_DIR)/

	make -C ulaw install ULAW_DIR=$(ULAW_DIR)

directories:
	install -m 0755 -d $(ULAW_DIR)
	install -m 0755 -d $(LIB)/msg
	install -m 0755 -d $(BIN_DIR)
	install -m 0755 -d $(SKEL_DIR)/raccess
	install -m 0755 -d $(SKEL_DIR)/msg
	install -m 0755 -d $(SKEL_DIR)/new
	install -m 0755 -d $(SKEL_DIR)/tcl
	# other directories should exist.
		install -m 0755 -d $(TCL_DIR)

clean:
	rm -f raccess.conf
	rm -f bin/notify

	find . -name '*~' -exec rm -f {} \;
	find . -name '\#?*' -exec rm -f {} \;
	find . -name '.??*~' -exec rm -f {} \;

ulaws-clean:
	$(MAKE) -C ulaw clean

docs:
	$(MAKE) -C doc

docs-clean:
	$(MAKE) -C doc clean