make install

This commit is contained in:
Gwenhael Le Moine 2024-08-25 17:20:40 +02:00
parent f721767a87
commit a520f05b3a
No known key found for this signature in database
GPG key ID: FDFE3669426707A7
4 changed files with 16 additions and 13 deletions

1
.gitignore vendored
View file

@ -19,3 +19,4 @@ dist/saturn.cat
dist/stateDir.*
dist/ROMs/*rom-*
/manual/saturn.log

View file

@ -141,7 +141,7 @@ get-roms:
make -C dist/ROMs get-roms
# Installation
install: dist/saturn dist/pack dist/saturn.cat dist/Saturn.ad
install: dist/saturn dist/pack dist/saturn.cat dist/Saturn.ad manual
install -m 755 -d -- $(DESTDIR)$(PREFIX)/bin
install -c -m 755 dist/saturn $(DESTDIR)$(PREFIX)/bin/saturn
install -c -m 755 dist/saturn48gx $(DESTDIR)$(PREFIX)/bin/saturn48gx
@ -149,27 +149,20 @@ install: dist/saturn dist/pack dist/saturn.cat dist/Saturn.ad
install -m 755 -d -- $(DESTDIR)$(PREFIX)/share/saturn
install -c -m 755 dist/pack $(DESTDIR)$(PREFIX)/share/saturn/pack
install -c -m 644 dist/hplogo.png $(DESTDIR)$(PREFIX)/share/saturn/hplogo.png
cp -R dist/ROMs/ $(DESTDIR)$(PREFIX)/share/saturn/
install -m 755 -d -- $(DESTDIR)$(PREFIX)/share/locale/C/LC_MESSAGES
install -c -m 644 dist/saturn.cat $(DESTDIR)$(PREFIX)/share/locale/C/LC_MESSAGES/saturn.cat
# install -m 755 -d -- $(DESTDIR)$(PREFIX)/share/locale/C/LC_MESSAGES
# install -c -m 644 dist/saturn.cat $(DESTDIR)$(PREFIX)/share/locale/C/LC_MESSAGES/saturn.cat
install -m 755 -d -- $(DESTDIR)/etc/X11/app-defaults
install -c -m 644 dist/Saturn.ad $(DESTDIR)/etc/X11/app-defaults/Saturn
# install -c -m 755 dist/mkcard $(DESTDIR)$(PREFIX)/share/x48ng/mkcard
# install -c -m 755 dist/dump2rom $(DESTDIR)$(PREFIX)/share/x48ng/dump2rom
# install -c -m 755 dist/checkrom $(DESTDIR)$(PREFIX)/share/x48ng/checkrom
# install -c -m 644 dist/hplogo.png $(DESTDIR)$(PREFIX)/share/x48ng/hplogo.png
# cp -R dist/ROMs/ $(DESTDIR)$(PREFIX)/share/x48ng/
# sed "s|@PREFIX@|$(PREFIX)|g" dist/setup-x48ng-home.sh > $(DESTDIR)$(PREFIX)/share/x48ng/setup-x48ng-home.sh
# chmod 755 $(DESTDIR)$(PREFIX)/share/x48ng/setup-x48ng-home.sh
# install -m 755 -d -- $(DESTDIR)$(MANDIR)/man1
# sed "s|@VERSION@|$(VERSION_MAJOR).$(VERSION_MINOR).$(PATCHLEVEL)|g" dist/x48ng.man.1 > $(DESTDIR)$(MANDIR)/man1/x48ng.1
install -m 755 -d -- $(DESTDIR)$(DOCDIR)
cp -R COPYING LICENSE README* docs* manual/ $(DESTDIR)$(DOCDIR)
# install -m 755 -d -- $(DESTDIR)$(PREFIX)/share/applications
# sed "s|@PREFIX@|$(PREFIX)|g" dist/x48ng.desktop > $(DESTDIR)$(PREFIX)/share/applications/x48ng.desktop
install -m 755 -d -- $(DESTDIR)$(PREFIX)/share/applications
sed "s|@PREFIX@|$(PREFIX)|g" dist/saturn48gx.desktop > $(DESTDIR)$(PREFIX)/share/applications/saturn48gx.desktop

BIN
dist/hplogo.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

9
dist/saturn48gx.desktop vendored Normal file
View file

@ -0,0 +1,9 @@
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Terminal=false
Exec=@PREFIX@/bin/saturn48gx
Name=saturn48gx
Icon=@PREFIX@/share/saturn/hplogo.png
Categories=Utility;