logo       

Re: blibdirs, take three, part two: msg#00005

Subject: Re: blibdirs, take three, part two
Michael G Schwern <schwern@xxxxxxxxx> writes:
>In part one I layed out the current state of things and what's broken.  In
>part two here I'll lay out the new design in the hopes it gets vetted for 
>sanity.
>
>
>Now, the obvious solution would be "just make the directories targets".
>
>INST_LIB = blib/lib
>INST_LIBDIR = $(INST_LIB)/Some
>
>$(INST_LIBDIR) :
>       $(MKDIR) $@
>
>Simple, right?  Right, except this is cross-platform make.  Nothing is
>simple.  GNU make and nmake can handle this, and I hope that means the rest
>can, (please confirm) but I've confirmed VMS' MMS/K cannot.
>
>Well sort of.
>
>MMS cannot handle a directory as a target, but it handles files just fine.
>VMS happens to have an odd quirk where each directory is a file.
>[.path.to.a.dir] is really [.path.to.a]dir.dir.  [1]
>
>So one could say...
>
>INST_LIBDIR = [.blib.lib.Some]
>
>INST_LIBDIR_DIR = [.blib.lib]Some.dir
>
>$(INST_LIBDIR) : $(INST_LIBDIR_DIR)
>       $(NOOP)
>
>$(INST_LIBDIR_DIR)
>       $(MKDIR) $@
>
>$(INST_LIBDIR) is still useful in the Makefile like always 
>(ie. "$(INST_LIBDIR)file" which is like "$(INST_LIBDIR)/file" on Unix)
>and $(INST_LIBDIR_DIR) can be used to ensure the directory is created.
>
>I think this will work out.  The previously deprecated dir_target() method
>can be reinstated to generate these targets.
>
>So.  Thoughts?

The problem with directories as targets is they timestamps change 
too often. 

e.g. 

  make adds Foo.pm to Libdir 

So Libdir timestamp changes.


>
>
>[1] For those who don't know, VMS file paths basically work like this.
>
>Unix                   Windows                 VMS                     
>/usr/local/bin/perl    \usr\local\bin\perl     [usr.local.bin]perl
>./dir/dir/dir          dir\dir\dir             [.dir.dir.dir]  
>./dir/dir/file         .\dir\dir\file          [.dir.dir]file
>../dir/dir/file                ..\dir\dir\file         [-dir.dir]file
>../../dir/dir/file     ..\..\dir\dir\file      [--dir.dir]file
>N/A                    C:\dir\dir\file         C:[dir.dir]file




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
science.linguis...    culture.sf.lite...    video.mplayer.c...    yellowdog.gener...    ietf.rfc822/199...    emacs.help/2002...    redhat.release....    kernel.speakup/...    java.openejb.de...    debian.devel.gt...    xfree86.newbie/...    bug-tracking.ma...    pam/2003-05/msg...    games.devel.ope...    user-groups.lin...    music.pancham/2...    network.mq.deve...    web.html.genera...    arklinux.bugs/2...    linux.ecasound/...    qnx.openqnx.dev...    org.user-groups...    file-systems.sf...    trustix.contrib...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe