File: Makefile

package info (click to toggle)
sch-rnd 1.0.10-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 17,696 kB
  • sloc: ansic: 119,120; awk: 1,502; makefile: 1,421; sh: 1,404; yacc: 905; lex: 172; xml: 160
file content (70 lines) | stat: -rw-r--r-- 1,967 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
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
69
70
MENU_RES=../src/sch-rnd/menu-default.lht
ROOT=..

all: user/05_ui/keytree.svg user/05_ui/keytree.txt keys.html
	ROOT="" ./Autostyle.sh *.html
	ROOT="../" ./Autostyle.sh tutorial/index.html user/index.html
	./datasheet.sh

include ../Makefile.conf
include $(LIBRND_MAK)

user/05_ui/keytree.svg: $(MENU_RES) $(KEYLIST)
	$(KEYLIST) --dot user/05_ui/src/node_names.txt $(MENU_RES) > user/05_ui/keytree.dot
	dot -Tsvg < user/05_ui/keytree.dot >user/05_ui/keytree.svg

user/05_ui/keytree.txt: $(MENU_RES) $(KEYLIST)
	$(KEYLIST) --lst $(MENU_RES) > user/05_ui/keytree.txt

keys.html: $(MENU_RES) $(KEYLIST)
	$(KEYLIST) $(MENU_RES) > keys.html

install_main:
	$(SCCBOX) $(HOW) *.html *.txt TODO $(DOCDIR)/

install:
	$(SCCBOX) mkdir -p "$(DOCDIR)" "$(DOCDIR)/resources"
	cd design && $(MAKE) install
	cd developer && $(MAKE) install
	cd examples && $(MAKE) install
	cd man && $(MAKE) install
	cd resources && $(MAKE) install
	cd tutorial && $(MAKE) install
	cd user && $(MAKE) install
	$(MAKE) install_main HOW="install -f -d"

linstall:
	cd design && $(MAKE) linstall
	cd developer && $(MAKE) linstall
	cd examples && $(MAKE) linstall
	cd man && $(MAKE) linstall
	cd resources && $(MAKE) linstall
	cd tutorial && $(MAKE) linstall
	cd user && $(MAKE) linstall
	$(MAKE) install_main HOW="install -f -l -d"

uninstall:
	cd design && $(MAKE) uninstall
	cd developer && $(MAKE) uninstall
	cd examples && $(MAKE) uninstall
	cd man && $(MAKE) uninstall
	cd resources && $(MAKE) uninstall
	cd tutorial && $(MAKE) uninstall
	cd user && $(MAKE) uninstall
	$(MAKE) install_main HOW="install -f -u -d"

clean:
	cd design && $(MAKE) clean
	cd developer && $(MAKE) clean
	cd examples && $(MAKE) clean
	cd man && $(MAKE) clean
	cd tutorial && $(MAKE) clean
	cd user && $(MAKE) clean

distclean:
	cd design && $(MAKE) distclean
	cd developer && $(MAKE) distclean
	cd examples && $(MAKE) distclean
	cd man && $(MAKE) distclean
	cd tutorial && $(MAKE) distclean
	cd user && $(MAKE) distclean