It was me who added these sed usages to makefiles, to let build work 
after header files removal.

Some time later, I discovered gcc -MP:

-------------
This option instructs CPP to add a phony target for each dependency 
other than the main file, causing each to depend on nothing. These dummy 
rules work around errors make gives if you remove header files without 
updating the Makefile to match.
This is typical output:

           test.o: test.c test.h

           test.h:
-------------

AFAIR it does the needed thing. I'm just not sure since when this option 
is present.


Adriano


On 24/02/2012 14:55, alexpeshk...@users.sourceforge.net wrote:
> Revision: 54042
>            http://firebird.svn.sourceforge.net/firebird/?rev=54042&view=rev
> Author:   alexpeshkoff
> Date:     2012-02-24 16:55:18 +0000 (Fri, 24 Feb 2012)
> Log Message:
> -----------
> Mac port
>
> Modified Paths:
> --------------
>      firebird/trunk/builds/posix/darwin.defaults
>      firebird/trunk/builds/posix/make.defaults
>      firebird/trunk/builds/posix/make.rules
>
> Modified: firebird/trunk/builds/posix/darwin.defaults
> ===================================================================
> --- firebird/trunk/builds/posix/darwin.defaults       2012-02-24 12:39:27 UTC 
> (rev 54041)
> +++ firebird/trunk/builds/posix/darwin.defaults       2012-02-24 16:55:18 UTC 
> (rev 54042)
> @@ -63,3 +63,5 @@
>
>   LINK_EMBED = $(LIB_LINK) $(LINK_FIREBIRD_EMBED_SYMBOLS) $(LIB_LINK_OPTIONS)\
>    $(LIB_EMBED_LINK_OPTIONS) $(LIB_LINK_SONAME)
> +
> +INLINE_EDIT_SED:= -i ""
>
> Modified: firebird/trunk/builds/posix/make.defaults
> ===================================================================
> --- firebird/trunk/builds/posix/make.defaults 2012-02-24 12:39:27 UTC (rev 
> 54041)
> +++ firebird/trunk/builds/posix/make.defaults 2012-02-24 16:55:18 UTC (rev 
> 54042)
> @@ -131,6 +131,9 @@
>   # multiple-precision integer library
>   MATHLIB=@MATHLIB@
>
> +# switch to make sed edit files inplace
> +INLINE_EDIT_SED:= -i
> +
>   # Default programs and tools to be used in the build process
>
>   SH=                 sh -c
>
> Modified: firebird/trunk/builds/posix/make.rules
> ===================================================================
> --- firebird/trunk/builds/posix/make.rules    2012-02-24 12:39:27 UTC (rev 
> 54041)
> +++ firebird/trunk/builds/posix/make.rules    2012-02-24 16:55:18 UTC (rev 
> 54042)
> @@ -88,15 +88,15 @@
>
>   $(OBJ)/%.o: $(SRC_ROOT)/%.c
>       $(CC) $(WCFLAGS) -c $(firstword $<) -o $@
> -     @sed -i -e "1,2s/:/: \$$(wildcard/" -e "\$$s/\(.*\)/\\1)/" $(patsubst 
> %.o,%.d,$@)
> +     @sed $(INLINE_EDIT_SED) -e "1,2s/:/: \$$(wildcard/" -e 
> "\$$s/\(.*\)/\\1)/" $(patsubst %.o,%.d,$@)
>
>   $(OBJ)/%.o: $(OBJ)/%.cpp
>       $(CXX) $(WCXXFLAGS) -c $(firstword $<) -o $@
> -     @sed -i -e "1,2s/:/: \$$(wildcard/" -e "\$$s/\(.*\)/\\1)/" $(patsubst 
> %.o,%.d,$@)
> +     @sed $(INLINE_EDIT_SED) -e "1,2s/:/: \$$(wildcard/" -e 
> "\$$s/\(.*\)/\\1)/" $(patsubst %.o,%.d,$@)
>
>   $(OBJ)/%.o: $(SRC_ROOT)/%.cpp
>       $(CXX) $(WCXXFLAGS) -c $(firstword $<) -o $@
> -     @sed -i -e "1,2s/:/: \$$(wildcard/" -e "\$$s/\(.*\)/\\1)/" $(patsubst 
> %.o,%.d,$@)
> +     @sed $(INLINE_EDIT_SED) -e "1,2s/:/: \$$(wildcard/" -e 
> "\$$s/\(.*\)/\\1)/" $(patsubst %.o,%.d,$@)
>
>   .SUFFIXES: .epp .e
>
>
> This was sent by the SourceForge.net collaborative development platform, the 
> world's largest Open Source development site.
>
>
> ------------------------------------------------------------------------------
> Virtualization&  Cloud Management Using Capacity Planning
> Cloud computing makes use of virtualization - but cloud computing
> also focuses on allowing computing to be delivered as a service.
> http://www.accelacomm.com/jaw/sfnl/114/51521223/
> _______________________________________________
> Firebird-checkins mailing list
> firebird-check...@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/firebird-checkins


------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to