Merge pull request #181 from dl1mx/master

Added common makefile
This commit is contained in:
Jonathan Naylor 2020-07-03 10:16:10 +01:00 committed by GitHub
commit 478b38aaee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

20
Makefile Normal file
View file

@ -0,0 +1,20 @@
SUBDIRS = YSFGateway YSFParrot YSFReflector
CLEANDIRS = $(SUBDIRS:%=clean-%)
INSTALLDIRS = $(SUBDIRS:%=install-%)
all: $(SUBDIRS)
$(SUBDIRS):
$(MAKE) -C $@
clean: $(CLEANDIRS)
$(CLEANDIRS):
$(MAKE) -C $(@:clean-%=%) clean
install: $(INSTALLDIRS)
$(INSTALLDIRS):
$(MAKE) -C $(@:install-%=%) install
.PHONY: $(SUBDIRS) $(CLEANDIRS) $(INSTALLDIRS)