File: Makefile

package info (click to toggle)
menu 2.1.5-3
  • links: PTS
  • area: main
  • in suites: potato
  • size: 1,476 kB
  • ctags: 1,251
  • sloc: cpp: 6,222; ansic: 2,306; sh: 453; makefile: 296; sed: 93
file content (33 lines) | stat: -rw-r--r-- 876 bytes parent folder | download
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
all: menu.html/index.html menu.txt.gz menu.info.gz #menu.dvi

menu.html/index.html: menu.sgml
	debiandoc2html menu.sgml

%.info: %.sgml
	debiandoc2info $(*F).sgml

%.txt: %.sgml
	debiandoc2text -O $(*F).sgml > $(*F).txt

%.gz:   %
	gzip -f9 $(*F)

clean: 
	rm -rf menu.html *.info* *.dvi* *.txt*

distclean: clean

install:
	install -d -g root -m 755 -o root \
	     $(prefix)/share/doc/menu/examples \
	     $(prefix)/share/doc/menu/html \
	     $(prefix)/lib/menu/default \
	     $(prefix)/share/info
	cp `find ../examples/* -prune -type f` $(prefix)/share/doc/menu/examples
	cp `find ../default/* -prune -type f` $(prefix)/lib/menu/default
	cp -a menu.html/* $(prefix)/share/doc/menu/html
	cp -a menu.txt.gz $(prefix)/share/doc/menu/
	cp -a menu.info.gz $(prefix)/share/info/
	#
	install -g root -o root -m 644 \
	   menu.sgml README.changes BUGS $(prefix)/share/doc/menu/