add install target to Makefile
This commit is contained in:
parent
b6b8397ae5
commit
670dfe61e1
4 changed files with 36 additions and 0 deletions
22
Makefile
22
Makefile
|
@ -30,3 +30,25 @@ clean-all: clean
|
|||
# Formatting
|
||||
pretty-code:
|
||||
clang-format -i src/*.c src/*.h
|
||||
|
||||
# Installing
|
||||
PREFIX = /usr
|
||||
DOCDIR = $(PREFIX)/doc/x48
|
||||
install: all
|
||||
install -m 755 -d -- $(DESTDIR)$(PREFIX)/bin
|
||||
install -c -m 755 x48 $(DESTDIR)$(PREFIX)/bin/x48
|
||||
|
||||
install -m 755 -d -- $(DESTDIR)$(PREFIX)/share/x48
|
||||
install -c -m 755 mkcard $(DESTDIR)$(PREFIX)/share/x48/mkcard
|
||||
install -c -m 755 dump2rom $(DESTDIR)$(PREFIX)/share/x48/dump2rom
|
||||
install -c -m 755 checkrom $(DESTDIR)$(PREFIX)/share/x48/checkrom
|
||||
install -c -m 644 hplogo.png $(DESTDIR)$(PREFIX)/share/x48/hplogo.png
|
||||
cp -R ROMs/ $(DESTDIR)$(PREFIX)/share/x48/
|
||||
find $(DESTDIR)$(PREFIX)/share/x48/ROMs/ -name "*.bz2" -exec bunzip2 {} \;
|
||||
install -c -m 755 setup-home.sh $(DESTDIR)$(PREFIX)/share/x48/setup-x48-home.sh
|
||||
|
||||
install -m 755 -d -- $(DESTDIR)$(DOCDIR)
|
||||
cp -R AUTHORS COPYING ChangeLog INSTALL LICENSE README doc/ romdump/ $(DESTDIR)$(DOCDIR)
|
||||
|
||||
install -m 755 -d -- $(DESTDIR)$(PREFIX)/share/applications
|
||||
install -c -m 644 x48.desktop $(DESTDIR)$(PREFIX)/share/applications/x48.desktop
|
||||
|
|
BIN
hplogo.png
Normal file
BIN
hplogo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.4 KiB |
6
setup-home.sh
Normal file
6
setup-home.sh
Normal file
|
@ -0,0 +1,6 @@
|
|||
mkdir ~/.hp48
|
||||
cp /usr/share/x48/ROMs/gxrom-r ~/.hp48/rom.dump
|
||||
cd ~/.hp48
|
||||
/usr/share/x48/mkcard 128K port1
|
||||
/usr/share/x48/mkcard 4M port2
|
||||
x48 -initialize
|
8
x48.desktop
Normal file
8
x48.desktop
Normal file
|
@ -0,0 +1,8 @@
|
|||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Exec=$PREFIX/bin/x48
|
||||
Name=x48
|
||||
Icon=/usr/share/x48/hplogo.png
|
Loading…
Reference in a new issue