File: Makefile

package info (click to toggle)
advi 1.6.0-6
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 17,416 kB
  • ctags: 2,825
  • sloc: ml: 12,261; sh: 1,500; ansic: 935; makefile: 738; perl: 57; tcl: 10
file content (58 lines) | stat: -rw-r--r-- 1,814 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
#*********************************************************************#
#                                                                     #
#                                Advi                                 #
#                                                                     #
#            Pierre Weis, projet Cristal, INRIA Rocquencourt          #
#                                                                     #
#  Copyright 2003 Institut National de Recherche en Informatique et   #
#  en Automatique.  Distributed only by permission.                   #
#                                                                     #
#*********************************************************************#

# $Id: Makefile,v 1.4 2004/10/02 21:35:09 weis Exp $

# Makefile for HTML and man files generation.

# From a list of source files (.html files) generates the
# corresponding objects (.htm files) using Htmlc.

# Usage: fill in the HTMLC, HFILES, and MFILES variables below, then
# make (or make all) will rebuild the whole thing
# make clean will remove all the generated files

# The Htmlc compiler with its include path options
HTMLC=htmlc -I Includes -env Includes/env

# The list of HTML source files
HFILES=advi-index.html advi-fra.html advi-eng.html \
advi-faq-eng.html advi-faq-fra.html \
advi-screen-shots-fra.html advi-screen-shots-eng.html

# The list of MAN source files
MFILES=advi.man

include ../Makefile.config

######## This part should automatically handle the generation of
######## object files

# The complete list of object files
HOBJS=$(HFILES:.html=.htm)
MOBJS=$(MFILES:.man=.m)
OBJS=$(HOBJS) $(MOBJS)

all: $(OBJS)

clean:
	$(RM) $(OBJS)
	cd Includes; $(RM) *~

.SUFFIXES:
.SUFFIXES: .htm .html .man .m

.html.htm:
	$(HTMLC) -f $< -t $@

.man.m:
	$(HTMLC) -f $< -t $@