[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



On 2008-05-31, Kristian Nørgaard <sslug@sslug> wrote:
> Det tænkte jeg kunne gøres med:
> -----------
> mit_target: $(OBJS) checklibs $(LIBS)
> 	buildkommando bla bla
>
> checklibs:
> 	make -C folder1 lib1
> 	make -C folder2 lib2
> ----------
>
> Men det får make til at bygge 'mit_target' hver eneste gang fordi 
> 'checklibs' regnes for en afhængighed der er nyere end 'mit_target'.

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,,$$))

	
/Sune


 
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] *