make install (WIP++)

This commit is contained in:
Gwenhael Le Moine 2024-08-25 17:05:35 +02:00
parent 6e4e42cc1c
commit 418bc2aa8b
No known key found for this signature in database
GPG key ID: FDFE3669426707A7
2 changed files with 11 additions and 4 deletions

View file

@ -153,8 +153,8 @@ install: dist/saturn dist/pack dist/saturn.cat dist/Saturn.ad
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
install -m 755 -d -- $(DESTDIR)$(PREFIX)/etc/X11/app-defaults
install -c -m 644 dist/Saturn.ad $(DESTDIR)$(PREFIX)/etc/X11/app-defaults/Saturn
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

11
dist/saturn48gx vendored
View file

@ -6,8 +6,13 @@ STATEDIR=$STATE_HOME/saturn/48gx
mkdir -p "$STATEDIR"
if [ ! -e "$STATEDIR"/gxrom-r ]; then
make -C /usr/share/saturn/ROMs get-roms
cp /usr/share/saturn/ROMs/gxrom-r "$STATEDIR"/gxrom-r
if [ ! -d /usr/share/saturn/ROMs/ ]; then
echo "Error: No ROMs/ dir found"
exit 1
fi
cp -R /usr/share/saturn/ROMs/ "$STATEDIR"/ROMs
make -C "$STATEDIR"/ROMs get-roms
cp "$STATEDIR"/ROMs/gxrom-r "$STATEDIR"/gxrom-r
fi
RAM=''
@ -18,4 +23,6 @@ fi
[ ! -e "$STATEDIR"/port1 ] && dd if=/dev/zero of="$STATEDIR"/port1 bs=1k count=128
[ ! -e "$STATEDIR"/port2 ] && dd if=/dev/zero of="$STATEDIR"/port2 bs=1k count=4096
export XAPPLRESDIR=/usr/etc/X11/app-defaults/
export NLSPATH=/usr/share/locale/C/LC_MESSAGES/
/usr/bin/saturn -face hp48 -hw hp48 -stateDir "$STATEDIR" -rom gxrom-r $RAM -port1 port1 -port2 port2