| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 | # Makefile for sub directoriesAMBER = stSERVER = serverREPL = replEXAMPLES = examples# REST is all except AMBERREST = $(SERVER) $(EXAMPLES) $(REPL)# And these are allDIRS = $(AMBER) $(REST)# The sets of directories to do various things inBUILDDIRS = $(DIRS:%=build-%)EXAMPLESDIRS = $(EXAMPLES:%=build-%)INSTALLDIRS = $(AMBER:%=install-%)CLEANDIRS = $(REST:%=clean-%)CLEANALLDIRS = $(DIRS:%=clean-%)all: $(BUILDDIRS)$(DIRS): $(BUILDDIRS)$(BUILDDIRS):	$(MAKE) -C $(@:build-%=%)amber: build-st# Examples and server need Amber firstbuild-server: build-stbuild-examples: build-stexamples: $(EXAMPLESDIRS)$(EXAMPLESDIRS):	$(MAKE) -C $(@:build-%=%)install: $(INSTALLDIRS)$(INSTALLDIRS):	$(MAKE) -C $(@:install-%=%) installclean: $(CLEANDIRS)$(CLEANDIRS): 	$(MAKE) -C $(@:clean-%=%) cleancleanall: $(CLEANALLDIRS) $(CLEANALLDIRS): 	$(MAKE) -C $(@:clean-%=%) clean.PHONY: subdirs $(DIRS).PHONY: subdirs $(BUILDDIRS).PHONY: subdirs $(INSTALLDIRS).PHONY: subdirs $(CLEANDIRS).PHONY: subdirs $(CLEANALLDIRS).PHONY: all install clean
 |