0c4e62470c
Not every distro has the same API in "0.4.0", since there was never an actual upstream release of notify-sharp 0.4.0. Once we have autofoo, we should make use of external notify-sharp an option for distros that have more recent code.
34 lines
1.4 KiB
Makefile
34 lines
1.4 KiB
Makefile
SparkleShare.exe : SparkleShare.sln
|
|
mdtool build --f --buildfile:SparkleShare.sln
|
|
|
|
install:
|
|
mkdir -p /usr/local/share/sparkleshare
|
|
cp SparkleShare/bin/Debug/SparkleShare.exe /usr/local/share/sparkleshare/
|
|
cp SparkleShare/bin/Debug/SparkleShare.exe.mdb /usr/local/share/sparkleshare/
|
|
cp SparkleShare/bin/Debug/notify-sharp.dll /usr/local/share/sparkleshare/
|
|
cp SparkleShare/bin/Debug/notify-sharp.dll.mdb /usr/local/share/sparkleshare/
|
|
chmod 755 /usr/local/share/sparkleshare/SparkleShare.exe
|
|
cp sparkleshare /usr/local/bin/
|
|
chmod 755 /usr/local/bin/sparkleshare
|
|
cp data/icons /usr/share/ -R
|
|
mkdir -p ~/.config/autostart
|
|
# TODO: doesn't start on login
|
|
cp data/sparkleshare.desktop.in ~/.config/autostart/sparkleshare.desktop
|
|
chmod 775 ~/.config/autostart/sparkleshare.desktop
|
|
gtk-update-icon-cache /usr/share/icons/hicolor -f
|
|
|
|
uninstall:
|
|
rm /usr/local/bin/sparkleshare
|
|
rm -rf /usr/local/share/sparkleshare
|
|
rm /usr/share/icons/hicolor/*x*/places/folder-sparkleshare.png
|
|
rm /usr/share/icons/hicolor/*x*/places/folder-sync*.png
|
|
rm /usr/share/icons/hicolor/*x*/status/document-*ed.png
|
|
rm /usr/share/icons/hicolor/*x*/status/avatar-default.png
|
|
rm /usr/share/icons/hicolor/*x*/emblems/emblem-sync*.png
|
|
rm /usr/share/icons/hicolor/*x*/animations/process-working.png
|
|
rm ~/.config/autostart/sparkleshare.desktop
|
|
|
|
clean:
|
|
rm -rf SparkleShare/bin
|
|
rm -rf notify-sharp/bin
|