install-examples for Gtk2



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.

this rule also allows for the easy inclusion of the examples in the
rpms. 

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

-rm




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