make everything target

Поиск
Список
Период
Сортировка
Искать

make everything target

От:
Andrew Dunstan <andrew@dunslane.net>
Дата:

I'd like to have an "everything" target that would build "all + html + 
contrib".

And maybe an "installcheck-everything" target that would run 
installcheck for src, pl and contrib.

Thoughts?

cheers

andrew



Re: make everything target

От:
Peter Eisentraut <peter_e@gmx.net>
Дата:
On ons, 2010-01-27 at 10:41 -0500, Andrew Dunstan wrote:
> I'd like to have an "everything" target that would build "all + html + 
> contrib".

+10

> And maybe an "installcheck-everything" target that would run 
> installcheck for src, pl and contrib.

+100



Re: make everything target

От:
David Fetter <david@fetter.org>
Дата:
On Wed, Jan 27, 2010 at 10:41:16AM -0500, Andrew Dunstan wrote:
> 
> I'd like to have an "everything" target that would build "all + html
> + contrib".
> 
> And maybe an "installcheck-everything" target that would run
> installcheck for src, pl and contrib.
> 
> Thoughts?

+1 on both :)

Cheers,
David.
-- 
David Fetter  http://fetter.org/
Phone: +1 415 235 3778  AIM: dfetter666  Yahoo!: dfetter
Skype: davidfetter      XMPP: david.fetter@gmail.com
iCal: webcal://www.tripit.com/feed/ical/people/david74/tripit.ics

Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate

Re: make everything target

От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
Peter Eisentraut  writes:
> On ons, 2010-01-27 at 10:41 -0500, Andrew Dunstan wrote:
>> I'd like to have an "everything" target that would build "all + html + 
>> contrib".

> +10

>> And maybe an "installcheck-everything" target that would run 
>> installcheck for src, pl and contrib.

> +100

These proposals sound reasonable to me too, but is "everything" an
appropriate target name, or is there some other/better convention?

I assume we don't want to mess with the default behavior (I don't
want to, anyway).
		regards, tom lane

Re: make everything target

От:
"David E. Wheeler" <david@kineticode.com>
Дата:
On Jan 27, 2010, at 2:38 PM, Tom Lane wrote:

> These proposals sound reasonable to me too, but is "everything" an
> appropriate target name, or is there some other/better convention?

Oooh, more bike-shedding.
   make theworld   make toutlemonde   make myday   make lovenotwar

Best,

David

Re: make everything target

От:
Andrew Dunstan <andrew@dunslane.net>
Дата:


Tom Lane wrote:
> Peter Eisentraut  writes:
>   
>> On ons, 2010-01-27 at 10:41 -0500, Andrew Dunstan wrote:
>>     
>>> I'd like to have an "everything" target that would build "all + html + 
>>> contrib".
>>>       
>
>   
>> +10
>>     
>
>   
>>> And maybe an "installcheck-everything" target that would run 
>>> installcheck for src, pl and contrib.
>>>       
>
>   
>> +100
>>     
>
> These proposals sound reasonable to me too, but is "everything" an
> appropriate target name, or is there some other/better convention?
>   

I'm not invested in the name. Suggestions welcome.

> I assume we don't want to mess with the default behavior (I don't
> want to, anyway).
> 		
>   

Me either, although it's a bit of a pity history has stuck us with the 
default behaviour.

cheers

andrew

Re: make everything target

От:
Alvaro Herrera <alvherre@commandprompt.com>
Дата:
David E. Wheeler wrote:
> On Jan 27, 2010, at 2:38 PM, Tom Lane wrote:
> 
> > These proposals sound reasonable to me too, but is "everything" an
> > appropriate target name, or is there some other/better convention?
> 
> Oooh, more bike-shedding.
> 
>     make theworld
>     make toutlemonde

"make world" sounds reasonable and I've remember seeing it elsewhere.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

Re: make everything target

От:
Andrew Dunstan <andrew@dunslane.net>
Дата:


Alvaro Herrera wrote:
> "make world" sounds reasonable and I've remember seeing it elsewhere.
>   

Here's a simple patch. Comments?

cheers

andrew
Index: GNUmakefile.in
===================================================================
RCS file: /cvsroot/pgsql/GNUmakefile.in,v
retrieving revision 1.55
diff -c -r1.55 GNUmakefile.in
*** GNUmakefile.in	3 Nov 2009 21:28:10 -0000	1.55
--- GNUmakefile.in	28 Jan 2010 02:41:32 -0000
***************
*** 14,19 ****
--- 14,26 ----
  	$(MAKE) -C config all
  	@echo "All of PostgreSQL successfully made. Ready to install."
  
+ world:
+ 	$(MAKE) -C doc html
+ 	$(MAKE) -C src all
+ 	$(MAKE) -C config all
+ 	$(MAKE) -C contrib all
+ 	@echo "PostgreSQL, contrib and HTML documentation successfully made. Ready to install."
+ 
  html man:
  	$(MAKE) -C doc $@
  
***************
*** 23,28 ****
--- 30,42 ----
  	$(MAKE) -C config $@
  	@echo "PostgreSQL installation complete."
  
+ install-world:
+ 	$(MAKE) -C doc install
+ 	$(MAKE) -C src install
+ 	$(MAKE) -C config install
+ 	$(MAKE) -C contrib install
+ 	@echo "PostgreSQL and contrib installation complete."
+ 
  installdirs uninstall coverage:
  	$(MAKE) -C doc $@
  	$(MAKE) -C src $@
***************
*** 60,65 ****
--- 74,85 ----
  check installcheck installcheck-parallel:
  	$(MAKE) -C src/test $@
  
+ installcheck-world:
+ 	$(MAKE) -C src/test installcheck
+ 	$(MAKE) -C src/pl installcheck
+ 	$(MAKE) -C interfaces/ecpg installcheck
+ 	$(MAKE) -C contrib installcheck
+ 
  GNUmakefile: GNUmakefile.in $(top_builddir)/config.status
  	./config.status $@
  

Re: make everything target

От:
Alvaro Herrera <alvherre@commandprompt.com>
Дата:
Andrew Dunstan wrote:
> 
> 
> Alvaro Herrera wrote:
> >"make world" sounds reasonable and I've remember seeing it elsewhere.
> 
> Here's a simple patch. Comments?

Should the new targets be added to Makefile too?

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

Re: make everything target

От:
Andrew Dunstan <andrew@dunslane.net>
Дата:


Alvaro Herrera wrote:
> Andrew Dunstan wrote:
>   
>> Alvaro Herrera wrote:
>>     
>>> "make world" sounds reasonable and I've remember seeing it elsewhere.
>>>       
>> Here's a simple patch. Comments?
>>     
>
> Should the new targets be added to Makefile too?
>
>   

Sure, good idea.

cheers

andrew

Re: make everything target

От:
Andrew Dunstan <andrew@dunslane.net>
Дата:

I wrote:
>
>
> Alvaro Herrera wrote:
>> Andrew Dunstan wrote:
>>  
>>> Alvaro Herrera wrote:
>>>    
>>>> "make world" sounds reasonable and I've remember seeing it elsewhere.
>>>>       
>>> Here's a simple patch. Comments?
>>>     
>>
>> Should the new targets be added to Makefile too?
>>
>>   
>
> Sure, good idea.
>
>

One more thing: do we want the new targets "world" and "install-world" 
documented, or just left for developers?

cheers

andrew

Re: make everything target

От:
Peter Eisentraut <peter_e@gmx.net>
Дата:
On tor, 2010-01-28 at 16:21 -0500, Andrew Dunstan wrote:
> One more thing: do we want the new targets "world" and
> "install-world" 
> documented, or just left for developers?

Document them.  How else would new developers learn about them?


FAQ