|
|
1.1 root 1: # Makefile for installing Hatari UI
2: #
3: # TODO:
4: # - install separate startup/.desktop script for maemo
5: # - how to do byte-compile (*.pyc) and optimization (*.pyo)?
6:
7: # Include settings
8: include ../Makefile.cnf
9:
10: prefix ?= /usr
11:
1.1.1.2 root 12: SCRIPT = $(BINDIR)/hatariui
13: DATAPATH = $(DATADIR)/hatariui
1.1 root 14: ICONPATH = $(prefix)/share/icons/hicolor/32x32/apps
15: DESKPATH = $(prefix)/share/applications
16:
17: all:
18: @echo "Nothing to build, just do 'make install'"
19:
1.1.1.3 ! root 20: hatariui.1.gz: hatariui.1
! 21: gzip -9 -c $< > $@
! 22:
! 23: install: hatariui.1.gz
1.1.1.2 root 24: $(INSTALL) -d $(DESTDIR)$(BINDIR)
25: $(INSTALL_SCRIPT) hatari-console.py $(DESTDIR)$(BINDIR)/
1.1.1.3 ! root 26: sed -e "s%^path=.*$$%path=$(DATAPATH)%" -e "s%^conf=.*$$%conf=$(CONFDIR)%" hatariui > $(DESTDIR)$(SCRIPT)
1.1.1.2 root 27: chmod 755 $(DESTDIR)$(SCRIPT)
1.1.1.3 ! root 28: $(INSTALL) -d $(DESTDIR)$(MANDIR)
! 29: $(INSTALL_DATA) hatariui.1.gz $(DESTDIR)$(MANDIR)/
1.1.1.2 root 30: $(INSTALL) -d $(DESTDIR)$(DATAPATH)
31: $(INSTALL_SCRIPT) hatariui.py debugui.py $(DESTDIR)$(DATAPATH)/
32: $(INSTALL_DATA) config.py dialogs.py hatari.py uihelpers.py $(DESTDIR)$(DATAPATH)/
1.1.1.3 ! root 33: $(INSTALL_DATA) README TODO release-notes.txt *.png $(DESTDIR)$(DATAPATH)/
1.1.1.2 root 34: $(INSTALL) -d $(DESTDIR)$(ICONPATH)
35: $(INSTALL_DATA) hatari-icon.png $(DESTDIR)$(ICONPATH)/
36: $(INSTALL) -d $(DESTDIR)$(DESKPATH)
37: $(INSTALL_DATA) hatariui.desktop $(DESTDIR)$(DESKPATH)/
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.