12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- AMBER = st
- SERVER = server
- REPL = repl
- REST = $(SERVER) $(REPL)
- DIRS = $(AMBER) $(REST)
- BUILDDIRS = $(DIRS:%=build-%)
- INSTALLDIRS = $(AMBER:%=install-%)
- CLEANDIRS = $(REST:%=clean-%)
- CLEANALLDIRS = $(DIRS:%=clean-%)
- all: $(BUILDDIRS)
- $(DIRS): $(BUILDDIRS)
- $(BUILDDIRS):
- $(MAKE) -C $(@:build-%=%)
- amber: build-st
- build-server: build-st
- install: $(INSTALLDIRS)
- $(INSTALLDIRS):
- $(MAKE) -C $(@:install-%=%) install
- clean: $(CLEANDIRS)
- $(CLEANDIRS):
- $(MAKE) -C $(@:clean-%=%) clean
- cleanall: $(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
|