[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Passing directory to submake
From: |
Russell |
Subject: |
Passing directory to submake |
Date: |
Sat, 19 Oct 2002 13:45:09 +1000 |
Hi all,
SUBDIRS= analog
.PHONY: $(SUBDIRS) clean proj
proj: $(SUBDIRS)
cd objs \
avr-ld -o proj.o -Map proj.map $(addsuffix .o,$(SUBDIRS)) \
avr-objcopy -O ihex -R .eeprom -g proj.o proj.hex
In the submake below, make is executed in a subdirectory.
How can i access the name of the subdirectory in this
submake?
$(SUBDIRS):
$(MAKE) -C $@
The idea is to be able to use an identical makefile
in every subdirectory.