From b3e63ad3fe598e548ab197db99f7dc395b9e20e5 Mon Sep 17 00:00:00 2001 From: Marco Kubon Date: Fri, 3 Jul 2020 11:04:26 +0200 Subject: [PATCH 1/2] Create Makefile Add common Makefile --- Makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..e58a628 --- /dev/null +++ b/Makefile @@ -0,0 +1,20 @@ +SUBDIRS = 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) From 4072e9234876777f1742ed423e12368b6cbd8ce8 Mon Sep 17 00:00:00 2001 From: Marco Kubon Date: Fri, 3 Jul 2020 11:07:11 +0200 Subject: [PATCH 2/2] Update Makefile Add missing subdirs --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e58a628..dd401bd 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -SUBDIRS = YSFReflector +SUBDIRS = YSFGateway YSFParrot YSFReflector CLEANDIRS = $(SUBDIRS:%=clean-%) INSTALLDIRS = $(SUBDIRS:%=install-%)