[PATCH 3/5] Show Xserver release/version date in DIX & DDX docs

Gaetan Nadon memsize at videotron.ca
Sat May 15 07:08:41 PDT 2010


On Fri, 2010-05-14 at 22:25 -0700, Alan Coopersmith wrote:

> +xserver.ent: $(top_builddir)/doc/xml/xserver.ent
> +       -rm -f $@
> +       ln -s $(top_builddir)/doc/xml/xserver.ent $@
> 

Autoconf suggest using $(LN_S) for better portability.


        — Macro: AC_PROG_LN_S
        
        
        If ‘ln -s’ works on the current file system (the operating
        system and file system support symbolic links), set the output
        variable LN_S to ‘ln -s’; otherwise, if ‘ln’ works, set LN_S to
        ‘ln’, and otherwise set it to ‘cp -p’. 
        
        If you make a link in a directory other than the current
        directory, its meaning depends on whether ‘ln’ or ‘ln -s’ is
        used. To safely create links using ‘$(LN_S)’, either find out
        which form is used and adjust the arguments, or always invoke ln
        in the directory where the link is to be created. 
        
        In other words, it does not work to do: 
        
        
        $(LN_S) foo /x/bar
        
        
        Instead, do: 
        
        
        (cd /x && $(LN_S) foo bar)
        
        

You may also take a look at AC_CONFIG_LINKS just in case (I thought I
had seen it used somewhere):


        AC_CONFIG_LINKS
        
                Automake will generate rules to remove configure generated links on ‘make distclean’ and to distribute named source files as part of ‘make dist’. 


This has to be tested with distcheck as the directory structure gets
reshuffled. Also make sure they are no left overs after a make clean
such that git would refuse to rebase due to a dirty directory. 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.x.org/archives/xorg-devel/attachments/20100515/84e51609/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <http://lists.x.org/archives/xorg-devel/attachments/20100515/84e51609/attachment.pgp>


More information about the xorg-devel mailing list