[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Help copying & renaming filename inside makefile.
From: |
givemecode |
Subject: |
Help copying & renaming filename inside makefile. |
Date: |
Mon, 10 Jan 2011 10:52:33 -0800 (PST) |
Hi - I have an include directory with many .h files. I need to create a rule
which is a SINGLE line to loop through all *.h files in the include
directory to create a HEADER list (below) instead of manually creating the
list.
HEADER += a.hh
HEADER += b.hh
HEADER += c.hh
....
So I need a foreach loop which loops through all the include/*.h files, and
appends them with a .hh and adds them to the HEADER += . list. Possibly
something like this, which I will mess up but anyway:
$(foreach i, $(INCLUDE_DIR)/%.h )
HEADER += $(@:%.h=%.hh)
please help, thanks
--
View this message in context:
http://old.nabble.com/Help-copying---renaming-filename-inside-makefile.-tp30636319p30636319.html
Sent from the Gnu - Make - Help mailing list archive at Nabble.com.
- Help copying & renaming filename inside makefile.,
givemecode <=
- Re: Help copying & renaming filename inside makefile., Oleksandr Gavenko, 2011/01/11
- Re: Help copying & renaming filename inside makefile., givemecode, 2011/01/11
- Re: Help copying & renaming filename inside makefile., Paul Smith, 2011/01/11
- Re: Help copying & renaming filename inside makefile., givemecode, 2011/01/11
- Re: Help copying & renaming filename inside makefile., Paul Smith, 2011/01/11
- Re: Help copying & renaming filename inside makefile., givemecode, 2011/01/14
- Re: Help copying & renaming filename inside makefile., Greg Chicares, 2011/01/14
- Re: Help copying & renaming filename inside makefile., givemecode, 2011/01/14
- Re: Help copying & renaming filename inside makefile., Greg Chicares, 2011/01/11
- Re: Help copying & renaming filename inside makefile., givemecode, 2011/01/11