[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [PROGRAMMERING] [MAKE] undgå rebuild



Hvad med at have dine ekstra lib-filer som specifikke targets ?

(utestet)

EXTRA_LIBS:=lib1/lib1.so lib2/libblabla.so

mit_target: $(OBJS) $(LIBS) $(EXTRA_LIBS)
	buildkommando bla bla

$(EXTRA_LIBS):
	make -C $(patsubst /%,,$@) $(patsubst %/,,$(patsubst .so,,$$))

Tak for inputtet, men dermed får jeg jo ikke testet de afhængigheder som $(EXTRA_LIBS) har.

Jeg får kun bygget dem hvis de ikke eksisterer.
Jeg vil lige præcis gerne have at kommandoen
	make -C $(patsubst /%,,$@) $(patsubst %/,,$(patsubst .so,,$$))

altid eksekveres men at det kun medfører rebuild hvis libs'ne blev bygget igen.

/ Kristian


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2008-07-01, 02:01 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *