rendered paste body# Insane Makefile for RandioPlayer
# Common prefix for installation directories.
# NOTE: This directory must exist when you start the install.
prefix = /usr/local
datarootdir = $(prefix)/share
datadir = $(datarootdir)
exec_prefix = $(prefix)
# Where to put the executable
bindir = $(exec_prefix)/bin
# Configuration
sysconfdir = $(prefix)/etc
all :
perl -MConfig::Simple -e 'print "Config::Simple OK...\n"'
perl -MGlib -e 'print "perl Config::Simple OK...\n"'
perl -MGStreamer -e 'print "perl GStreamer OK...\n"'
perl -MGtk2 -e 'print "perl Gtk2 OK...\n"'
# Create the executable ;)
perl -pe '$$_ .= "my \$$sysconfdir = \"$(sysconfdir)\";\n" if /^# Sysconfdir/; $$_ .= "my \$$datadir = \"$(datadir)\";\n" if /^# Datadir/' src/RandioPlayer > bin/RandioPlayer
chmod a+x bin/RandioPlayer
install :
cp bin/* $(bindir)
cp etc/* $(sysconfdir)
cp -r RandioPlayer $(datadir)
install -d $(datadir)/applications $(datadir)/pixmaps
install menu-item/app/* $(datadir)/applications
install menu-item/pix/* $(datadir)/pixmaps