summaryrefslogtreecommitdiff
path: root/makefiles/nmake/top.mk
blob: 188375a52c8a3764cdf8b0fb2fc76feb312a764b (plain)
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
# top-level makefile for a package
#
# requires:
# - TOPDIR
# - SUBDIRS
#
# provides:
# - target 'all'
# - target 'clean'
# - target 'distclean'
# - target 'test'
# - target 'doc'
# - target 'dist'
# - target 'help'

all:
	@if not "$(SUBDIRS)" == "" @for %%d IN ( $(SUBDIRS) ) do @cd %%d & $(MAKE) /nologo /f Makefile.w32 all & cd ..

clean:
	@if not "$(SUBDIRS)" == "" @for %%d IN ( $(SUBDIRS) ) do @cd %%d & $(MAKE) /nologo /f Makefile.w32 clean & cd ..

distclean:
	@if not "$(SUBDIRS)" == "" @for %%d IN ( $(SUBDIRS) ) do @cd %%d & $(MAKE) /nologo /f Makefile.w32 distclean & cd ..

#.PHONY: install
#install:
#	@test -z "$(SUBDIRS)" || ( set -e; for d in $(SUBDIRS)""; do \
#	  (set -e; $(MAKE) -C $$d install || exit 1); done)

test: all
	@cd tests & $(MAKE) /nologo /f Makefile.W32 test

doc:
	@cd docs & $(MAKE) /nologo /f Makefile.W32 doc

help:
	@type makefiles\nmake\help.mk

#-include $(TOPDIR)/makefiles/gmake/dist.mk