Make (y 2)

Make (y 2)

Como ejemplo ilustrativo mas complejo, pondremos el Makefile de generación de esta presentación:

# $Id: Makefile,v 1.2 1999/07/22 23:12:10 luis Exp $
# Author: Luis Colorado 
# Date: Sat Oct 31 12:48:08 MET 1998

.SUFFIXES: .m4 .html

.m4.html:
	$(M4) $(M4FLAGS) $*.m4 >$*.html

todo_html= index.html \
	1.html ejrcs.html 2.html 3.html 4.html 5.html 6.html 7.html 8.html 9.html
todo_m4 = $(todo_html:html=m4)

M4=m4
M4FLAGS=-Dla_presentacion="Herramientas de programación" -Dc2html_url="http://SLUG.HispaLinux.ES/~luis/util/c2html/c2html-0.7a/"

todo: $(todo_html)
clean:
	rm -f $(todo_html)

$(todo_html): cabe.m4 Makefile

ejrcs.html: main.c.1 main.c.2 main.c.3 main.c.4
2.html: flex.l.1
3.html: c2html.l.1
4.html: makefile.1
5.html: Makefile
7.html: Makefile.1 Imakefile.1
9.html: configure.in.1 Makefile.in.1

# $Id: Makefile,v 1.2 1999/07/22 23:12:10 luis Exp $


Luis.Colorado@Hispalinux.ES
Puentelarrá 31
28031 MADRID
http://SLUG.HispaLinux.ES/~luis/