File: Makefile-subdirs

package info (click to toggle)
cod-tools 3.7.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 154,792 kB
  • sloc: perl: 57,588; sh: 36,842; ansic: 6,402; xml: 1,982; yacc: 1,117; makefile: 727; python: 166
file content (35 lines) | stat: -rw-r--r-- 1,313 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
34
35
#---*- Makefile -*-------------------------------------------------------------
#$Author: antanas $
#$Revision: 8858 $
#$Date: 2021-08-07 21:45:29 +0300 (Sat, 07 Aug 2021) $
#$URL: svn+ssh://www.crystallography.net/home/coder/svn-repositories/cod-tools/tags/v3.7.0/makefiles/Makefile-subdirs $
#------------------------------------------------------------------------------

MAKECONF_FILES = ${filter-out %~, ${wildcard Makeconf*}}

ifneq ("${MAKECONF_FILES}","")
include ${MAKECONF_FILES}
endif

# A Makeconfig file might contain a line like the following one:
# FIRST = f2mtz/
#
# The recursive Makefile will first descend to directories mentioned
# in ${FIRST}, and then into all the rest alphabetically:

DIRS  = ${FIRST} ${filter-out ${FIRST}, ${sort ${dir ${wildcard */[Mm]akefile}}}}

.PHONY: all check clean cleanAll distclean install test tests out output outputs

#------------------------------------------------------------------------------

all build check clean cleanAll distclean install test tests out output outputs listdiff:
	@for d in ${DIRS}; do test -d $$d && ${MAKE} -C $$d $@; done

#------------------------------------------------------------------------------

MAKELOCAL_FILES = ${filter-out %~, ${wildcard Makelocal*}}

ifneq ("${MAKELOCAL_FILES}","")
include ${MAKELOCAL_FILES}
endif