Re: install-examples for Gtk2



On Sunday, September 7, 2003, at 10:35 PM, Ross McFarland wrote:

after looking around at various mailing lists, to find out where the
examples probably ought to go i arrived at the following rule set:

# the tmp-examples stuff is just so that only the pl files get installed
install-examples:
        \ mkdir tmp-examples/
        \ cp examples/*.pl tmp-examples/
        \ \$(MOD_INSTALL) ./tmp-examples/       \\
                \$(PREFIX)/share/doc/perl-\$(DISTNAME)/examples
        \ rm tmp-examples/*.pl
        \ rmdir tmp-examples/

i don't really like having to copy the files into a second, temporary,
directory, but in order to use the $(MOD_INSTALL) method it seemed to be
necessary.

well, 'cp' and 'rm' aren't going to work on all platforms (namely windows).... how about $(CP) and $(RM)?


this leaves out gtk-demo, which it might be nice to install, as an
example, any thoughts there?

gtk-demo isn't very clean --- ported from a C app, it's in several pieces, and since i never actually implemented the function that finds the pixbufs, it has to be run from the demo directory.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]