File: Makefile.am

package info (click to toggle)
freedroidrpg 1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 273,532 kB
  • sloc: ansic: 66,191; cpp: 2,033; sh: 766; makefile: 627; python: 322; xml: 94; perl: 87
file content (29 lines) | stat: -rw-r--r-- 884 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
## Process this file with automake to produce Makefile.in
# $Id: Makefile.am,v 1.26 2007-09-15 18:02:36 ahuillet Exp $

SUBDIRS = manual tools

# Special construct to enable recursive call of doc ;
#   1/ A suffix is added to each dir in SUBDIRS (see DOCSUBDIRS)
#   2/ This new list is used as a target, to call a rule in loop on each
#      suffixed dir
#   3/ In this rule, the suffix is removed to extract the subdir name
#      (see the rule of the $(DOCSUBDIRS) target)
#
# Should be replaced by AM_EXTRA_RECURSIVE_TARGETS in top
# configure.ac, but this needs automake 1.13
# Inspired by http://lackof.org/taggart/hacking/make-example/

DOCSUBDIRS = $(SUBDIRS:%=%-doc)

doc: local-doc $(DOCSUBDIRS)

local-doc:
	@rm -f doxygen.log
	doxygen Doxyfile
	@cp *.png $(top_srcdir)/doxygen

$(DOCSUBDIRS): 
	$(MAKE) -C $(@:%-doc=%) $(AM_MAKEFLAGS) doc

.PHONY: local-doc $(DOCSUBDIRS)