From 5da7887c1cfd302c80199bd49522d40d0c35e538 Mon Sep 17 00:00:00 2001 From: derivator Date: Thu, 5 Mar 2015 02:02:15 +0100 Subject: [PATCH] Linux: add install target to makefile --- Vocaluxe/Linux/Package/Vocaluxe.desktop | 12 ++++++++++++ makefile | 14 ++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 Vocaluxe/Linux/Package/Vocaluxe.desktop diff --git a/Vocaluxe/Linux/Package/Vocaluxe.desktop b/Vocaluxe/Linux/Package/Vocaluxe.desktop new file mode 100644 index 00000000..40d32f05 --- /dev/null +++ b/Vocaluxe/Linux/Package/Vocaluxe.desktop @@ -0,0 +1,12 @@ +[Desktop Entry] +Type=Application +Version=1.0 +Name=Vocaluxe +Keywords=game;party;singing; +GenericName=Karaoke +Icon=INSTALLPATH/Vocaluxe.ico +Path=INSTALLPATH +Exec=mono INSTALLPATH/Vocaluxe.exe %U +Terminal=false +StartupNotify=false +Categories=Game; diff --git a/makefile b/makefile index 7f17fb92..3701bcab 100644 --- a/makefile +++ b/makefile @@ -11,3 +11,17 @@ clean: $(MAKE) -C PitchTracker clean $(MAKE) -C Vocaluxe/Lib/Video/Acinerella clean git checkout $(windowsLibs) + +INSTALLPATH?=/usr/share/vocaluxe +WRONG_ARCH=$(shell echo $(ARCH) | sed -e s/x86/x64/ -e s/x64/x86/) +install: + mkdir -p $(DESTDIR)$(INSTALLPATH) + cp -ru Output/. $(DESTDIR)$(INSTALLPATH) + rm -rf $(DESTDIR)$(INSTALLPATH)/$(WRONG_ARCH) + +ICONPATH?=/usr/share/applications +install_icon: + mkdir -p $(DESTDIR)$(ICONPATH) + cp Vocaluxe/Linux/Package/Vocaluxe.desktop $(DESTDIR)$(ICONPATH)/ + sed -i -e 's=INSTALLPATH=$(INSTALLPATH)=' $(DESTDIR)$(ICONPATH)/Vocaluxe.desktop +