[gnome-love] Makefile help



Dear Gnomers,

I am having a bit of trouble trying to get a makefile to copy a file
into its directory.  This is probably pretty trivial, but I havent used
Makefiles before!

In the makefile below, I have added the "guess_system:" line at the
bottom.

If a gnome hacker with some more experience that I could point me in the
right direction, that would be great.

Thanks,

Shane


=== Makefile.am: ===

backends = \
        disks-conf \
        memory-conf \
        network-conf \
        shares-conf \
        time-conf \
        users-conf \
        boot-conf \
        print-conf \
 internetsharing-conf \
        mouse-conf \
        package-conf

PERLBODY = \
        gettext.pl.in \
        parse.pl.in \
        replace.pl.in \
        file.pl.in \
        general.pl.in \
        platform.pl.in \
        report.pl.in \
        xml.pl.in \
        service.pl.in \
        util.pl.in \
        network.pl.in \
        boot.pl.in \
        filesys.pl.in \
        media.pl.in \
        debug.pl.in \
        print.pl.in \
        share.pl.in


perl_libs = \
        $(PERLBODY:.pl.in=.pl)

scripts_SCRIPTS = $(backends) $(perl_libs) guess_system.sh

EXTRA_DIST = \
        $(PERLBODY) \
        disks-conf.in \
        memory-conf.in \
        network-conf.in \
        shares-conf.in \
        time-conf.in \
        users-conf.in \
        boot-conf.in \
        print-conf.in \
        mouse-conf.in \
        internetsharing-conf.in \
        package-conf.in \
        guess_system.sh

CLEANFILES = $(backends) $(perl_libs)

$(backends): %-conf: %-conf.in
        sed s#___scriptsdir___#$(scriptsdir)# < $< > $@
        chmod +x $@

$(perl_libs): %.pl: %.pl.in
        sed -e s#___scriptsdir___#$(scriptsdir)# -e s#___bindir___#$(bindir)# <
$< > $@

guess_system: 
   cp ../config.guess guess_system.sh






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