Linux: add install target to makefile
This commit is contained in:
1 parent
d7e0b24eec
commit
5da7887c1c
2 files changed
+26
No files matched your search
@@ -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;
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user