Fixed dependencies in Makefile
[h316.git] / Makefile
CommitLineData
3d113773 1# Toplevel Makefile for Hachti's H316 stuff collection
2
6b022f35 3SUBDIRS = pc-tools lib systems programs
fa105a9b 4
6b022f35
PH
5# If you want to build the docs, too: Uncomment next line:
6#SUBDIRS+=docs/manual
fa105a9b 7
c0fc7e11
PH
8default: .done_programs
9
6b022f35
PH
10.done_pc-tools :
11 @$(MAKE) -C pc-tools && touch $@
fa105a9b 12
6b022f35
PH
13.done_lib: .done_pc-tools
14 @$(MAKE) -C lib && touch $@
fa105a9b 15
6b022f35
PH
16.done_systems_dap: .done_lib
17 @$(MAKE) -C systems/dap && touch $@
fa105a9b 18
6b022f35
PH
19.done_programs_tools: .done_systems_dap
20 @$(MAKE) -C programs/tools && touch $@
fa105a9b 21
c0fc7e11 22.done_systems: .done_programs_tools
6b022f35 23 @$(MAKE) -C systems && touch $@
adbca57e 24
c0fc7e11 25.done_programs_fortran: .done_systems
6b022f35 26 @$(MAKE) -C programs/fortran && touch $@
3d113773 27
6b022f35
PH
28.done_programs: .done_programs_fortran
29 @$(MAKE) -C programs && touch $@
fe67c7be 30
4dafd752 31clean:
6f41bb44 32 @$(foreach subdir, $(SUBDIRS), $(MAKE) -C $(subdir) $@&&) true
eabafcca 33 @rm -f h316rc
6b022f35 34 @rm -f .done_*
99ab1007 35
3d113773 36%:
37 @echo $@
38 $(foreach subdir, $(SUBDIRS), $(MAKE) -C $(subdir) $@;)
39
40
fa105a9b 41.PHONY: default cvsclean
6d498331 42
3d113773 43