#!/bin/sh

cc enxamp.c epplet.c -o enxamp.epplet -O3 `gtk-config --libs` `gtk-config --cflags` `imlib-config --libs` `imlib-config --cflags` -lxmms
cp -f enxamp.epplet $EBIN/enxamp.epplet
chmod a+x $EBIN/enxamp.epplet

if [ ! -d $EROOT/epplet_icons ]; then
  mkdir $EROOT/epplet_icons;
  chmod a+r+x $EROOT/epplet_icons;
fi

#cp -f enxamp.icon $EROOT/epplet_icons/enxamp.icon
#chmod a+r $EROOT/epplet_icons/enxamp.icon

cp -Rf enxamp.ABOUT $EROOT/epplet_icons/
chmod -R a+r $EROOT/epplet_icons/enxamp.ABOUT