Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
i have a Makefile:
# This is a template for all makefile.
#Set the list of files to be delete by clean:
CLEAN_TARGETS += $(ALL_LIBRARIES)#Set the list of target to make while testing
TEST_TARGETS += mytest# adjust the location of Rules.mk as needed.
include ../../Rules.mkmytest:
$(CMDECHO) echo mytest > /dev/nulltestWithFailure:
ifeq ($(FAIL),)
$(WarnFailTest)
endif
I want to add comething from the command line in front of TEST_TARGETS +=One more thing.
there is 'mytest' after TEST_TARGETS +=
i need to delete that in one option and i want to retain that in another, for example if i get 'test1' from command line it should be appeneded so that it becomes
TEST_TARGETS += test1 mytestHow can i do that?

Hey:
i have following content in file...
TARGETS += TAR1 TAR1TAR2 TAR3
Now i have to check whether TAR1 exists or not. Its easy to find but in this case it gives two occurences. I need independent (TAR1 by itself, as independent string). It shouldn't consider TAR1 in TAR1TAR2 One more thing...this can be done by searching
' TAR1 ' but what if it is the last word on that line. ' TAR1 ' wont work because last word on line is not a spcae ' '. i dont know. can someone help me out.Atif

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |