From 8b99112b63b6a30badc1ad7e4e080d5d8fda9994 Mon Sep 17 00:00:00 2001 From: Nathael Pajani Date: Wed, 9 Sep 2015 22:11:58 +0200 Subject: [PATCH] Modify all base apps Makefiles according to the new subdirectory scheme --- adc/Makefile | 9 ++++++--- eeprom/Makefile | 9 ++++++--- epaper/Makefile | 9 +++++---- gpio_intr/Makefile | 9 ++++++--- i2c_temp/Makefile | 9 ++++++--- lcd_char/Makefile | 8 +++++--- ledstrip/Makefile | 9 ++++++--- ultrasonic_sensor/Makefile | 9 ++++++--- 8 files changed, 46 insertions(+), 25 deletions(-) diff --git a/adc/Makefile b/adc/Makefile index 91407f3..954c63f 100644 --- a/adc/Makefile +++ b/adc/Makefile @@ -1,10 +1,13 @@ -# Makefile for GPIO Demo Module apps +# Makefile for "base" apps +# This includes apps for the GPIO Demo Module and for the LPC1224-BO board. +MODULE = $(shell basename $(shell cd .. && pwd && cd -)) NAME = $(shell basename $(CURDIR)) .PHONY: $(NAME).bin $(NAME).bin: - @make -C ../.. --no-print-directory NAME=$(NAME) apps/$(NAME)/$@ + @make -C ../../.. --no-print-directory NAME=$(NAME) MODULE=$(MODULE) apps/$(MODULE)/$(NAME)/$@ clean mrproper: - @make -C ../.. --no-print-directory $@ + @make -C ../../.. --no-print-directory $@ + diff --git a/eeprom/Makefile b/eeprom/Makefile index 91407f3..954c63f 100644 --- a/eeprom/Makefile +++ b/eeprom/Makefile @@ -1,10 +1,13 @@ -# Makefile for GPIO Demo Module apps +# Makefile for "base" apps +# This includes apps for the GPIO Demo Module and for the LPC1224-BO board. +MODULE = $(shell basename $(shell cd .. && pwd && cd -)) NAME = $(shell basename $(CURDIR)) .PHONY: $(NAME).bin $(NAME).bin: - @make -C ../.. --no-print-directory NAME=$(NAME) apps/$(NAME)/$@ + @make -C ../../.. --no-print-directory NAME=$(NAME) MODULE=$(MODULE) apps/$(MODULE)/$(NAME)/$@ clean mrproper: - @make -C ../.. --no-print-directory $@ + @make -C ../../.. --no-print-directory $@ + diff --git a/epaper/Makefile b/epaper/Makefile index e44d25f..954c63f 100644 --- a/epaper/Makefile +++ b/epaper/Makefile @@ -1,12 +1,13 @@ -# Makefile for GPIO Demo Module apps +# Makefile for "base" apps +# This includes apps for the GPIO Demo Module and for the LPC1224-BO board. +MODULE = $(shell basename $(shell cd .. && pwd && cd -)) NAME = $(shell basename $(CURDIR)) .PHONY: $(NAME).bin $(NAME).bin: - @make -C ../.. --no-print-directory NAME=$(NAME) apps/$(NAME)/$@ - cat $@ *.epaper > $(NAME).img + @make -C ../../.. --no-print-directory NAME=$(NAME) MODULE=$(MODULE) apps/$(MODULE)/$(NAME)/$@ clean mrproper: - @make -C ../.. --no-print-directory $@ + @make -C ../../.. --no-print-directory $@ diff --git a/gpio_intr/Makefile b/gpio_intr/Makefile index 91407f3..954c63f 100644 --- a/gpio_intr/Makefile +++ b/gpio_intr/Makefile @@ -1,10 +1,13 @@ -# Makefile for GPIO Demo Module apps +# Makefile for "base" apps +# This includes apps for the GPIO Demo Module and for the LPC1224-BO board. +MODULE = $(shell basename $(shell cd .. && pwd && cd -)) NAME = $(shell basename $(CURDIR)) .PHONY: $(NAME).bin $(NAME).bin: - @make -C ../.. --no-print-directory NAME=$(NAME) apps/$(NAME)/$@ + @make -C ../../.. --no-print-directory NAME=$(NAME) MODULE=$(MODULE) apps/$(MODULE)/$(NAME)/$@ clean mrproper: - @make -C ../.. --no-print-directory $@ + @make -C ../../.. --no-print-directory $@ + diff --git a/i2c_temp/Makefile b/i2c_temp/Makefile index 91407f3..954c63f 100644 --- a/i2c_temp/Makefile +++ b/i2c_temp/Makefile @@ -1,10 +1,13 @@ -# Makefile for GPIO Demo Module apps +# Makefile for "base" apps +# This includes apps for the GPIO Demo Module and for the LPC1224-BO board. +MODULE = $(shell basename $(shell cd .. && pwd && cd -)) NAME = $(shell basename $(CURDIR)) .PHONY: $(NAME).bin $(NAME).bin: - @make -C ../.. --no-print-directory NAME=$(NAME) apps/$(NAME)/$@ + @make -C ../../.. --no-print-directory NAME=$(NAME) MODULE=$(MODULE) apps/$(MODULE)/$(NAME)/$@ clean mrproper: - @make -C ../.. --no-print-directory $@ + @make -C ../../.. --no-print-directory $@ + diff --git a/lcd_char/Makefile b/lcd_char/Makefile index 86e0d12..954c63f 100644 --- a/lcd_char/Makefile +++ b/lcd_char/Makefile @@ -1,11 +1,13 @@ -# Makefile for GPIO Demo Module apps +# Makefile for "base" apps +# This includes apps for the GPIO Demo Module and for the LPC1224-BO board. +MODULE = $(shell basename $(shell cd .. && pwd && cd -)) NAME = $(shell basename $(CURDIR)) .PHONY: $(NAME).bin $(NAME).bin: - @make -C ../.. --no-print-directory NAME=$(NAME) apps/$(NAME)/$@ + @make -C ../../.. --no-print-directory NAME=$(NAME) MODULE=$(MODULE) apps/$(MODULE)/$(NAME)/$@ clean mrproper: - @make -C ../.. --no-print-directory $@ + @make -C ../../.. --no-print-directory $@ diff --git a/ledstrip/Makefile b/ledstrip/Makefile index 91407f3..954c63f 100644 --- a/ledstrip/Makefile +++ b/ledstrip/Makefile @@ -1,10 +1,13 @@ -# Makefile for GPIO Demo Module apps +# Makefile for "base" apps +# This includes apps for the GPIO Demo Module and for the LPC1224-BO board. +MODULE = $(shell basename $(shell cd .. && pwd && cd -)) NAME = $(shell basename $(CURDIR)) .PHONY: $(NAME).bin $(NAME).bin: - @make -C ../.. --no-print-directory NAME=$(NAME) apps/$(NAME)/$@ + @make -C ../../.. --no-print-directory NAME=$(NAME) MODULE=$(MODULE) apps/$(MODULE)/$(NAME)/$@ clean mrproper: - @make -C ../.. --no-print-directory $@ + @make -C ../../.. --no-print-directory $@ + diff --git a/ultrasonic_sensor/Makefile b/ultrasonic_sensor/Makefile index 91407f3..954c63f 100644 --- a/ultrasonic_sensor/Makefile +++ b/ultrasonic_sensor/Makefile @@ -1,10 +1,13 @@ -# Makefile for GPIO Demo Module apps +# Makefile for "base" apps +# This includes apps for the GPIO Demo Module and for the LPC1224-BO board. +MODULE = $(shell basename $(shell cd .. && pwd && cd -)) NAME = $(shell basename $(CURDIR)) .PHONY: $(NAME).bin $(NAME).bin: - @make -C ../.. --no-print-directory NAME=$(NAME) apps/$(NAME)/$@ + @make -C ../../.. --no-print-directory NAME=$(NAME) MODULE=$(MODULE) apps/$(MODULE)/$(NAME)/$@ clean mrproper: - @make -C ../.. --no-print-directory $@ + @make -C ../../.. --no-print-directory $@ + -- 2.43.0