File: Makefile

package info (click to toggle)
mbot 0.3-5
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 212 kB
  • ctags: 119
  • sloc: python: 595; makefile: 102; php: 98; sql: 59
file content (32 lines) | stat: -rw-r--r-- 552 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
# $Id: Makefile,v 1.2 2003/12/23 11:30:06 dim Exp $

SOURCE=$(wildcard *.lyx)
DOCUMENT=$(basename $(SOURCE))
TARGET=$(SOURCE:.lyx=.pdf) $(SOURCE:.lyx=.html)

all: man $(TARGET)

man: mbot.1 mbot.conf.5

mbot.1: mbot.1.sgml
	docbook-to-man $? > $@ 2>&1

mbot.conf.5: mbot.conf.5.sgml
	docbook-to-man $? >$@ 2>&1

%.ps:%.lyx
	lyx -e ps $<

%.pdf:%.lyx
	lyx -e pdf $<

%.tex:%.lyx
	lyx -e latex $<

%.html:%.tex
	hevea -fix -francais ./url-fix.hva $<
	-rm *.htoc *.haux

clean:
	-rm *~
	-rm $(DOCUMENT).tex $(DOCUMENT).html $(DOCUMENT).ps $(DOCUMENT).pdf