Re: Displaying Hebrew charachters

Stephen Wood <[email protected]>
Newsgroups gmane.comp.mobile.bitpim.devel
Message-ID <[email protected]>
On Sun, 13 Feb 2005 22:37:47 -0800, Roger Binns <[email protected]> wrote:
> > And not to be only on the asking side, I'm attaching a Makefile I wrote
> > to replace makepackets.sh. The advantage of it is that if you're only
> > updating your own protocol, there's no need to remake all other
> > protocols (not really an issue now, but I'm a forward thinker).
> 
> The shell file has the advantage of automatically picking up all
> the files.  The previous scheme often had people forgetting to
> add new .p files to the main list.  We were also adding new phones
> at a considerably higher rate.

How about this?

PYTHON=python
PACKET_SOURCES:= $(wildcard p_*.p)
 
packets: $(patsubst %.p, %.py, $(PACKET_SOURCES))
 
%.py: %.p
        @echo $<; $(PYTHON) protogen.py $< $@

It's gnumake only.  Can we assume that gnumake exists on any platform
that /bin/sh scripts run on?

Better yet, could we compile the .p files in bp.py with something like this:

if __debug__:
    compile_out_of_date_dotp_files()

Stephen


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.