File: Makefile

package info (click to toggle)
hatari 1.4.0-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 6,848 kB
  • ctags: 6,617
  • sloc: ansic: 60,354; python: 3,154; objc: 1,535; asm: 609; sh: 441; makefile: 338
file content (37 lines) | stat: -rw-r--r-- 1,272 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Makefile for installing Hatari UI
#
# TODO:
# - install separate startup/.desktop script for maemo
# - how to do byte-compile (*.pyc) and optimization (*.pyo)?

# Include settings
include ../Makefile.cnf

prefix ?= /usr

SCRIPT   = $(BINDIR)/hatariui
DATAPATH = $(DATADIR)/hatariui
ICONPATH = $(prefix)/share/icons/hicolor/32x32/apps
DESKPATH = $(prefix)/share/applications

all:
	@echo "Nothing to build, just do 'make install'"

hatariui.1.gz: hatariui.1
	gzip -9 -c $<  >  $@

install: hatariui.1.gz
	$(INSTALL) -d $(DESTDIR)$(BINDIR)
	$(INSTALL_SCRIPT) hatari-console.py $(DESTDIR)$(BINDIR)/
	sed -e "s%^path=.*$$%path=$(DATAPATH)%" -e "s%^conf=.*$$%conf=$(CONFDIR)%" hatariui > $(DESTDIR)$(SCRIPT)
	chmod 755 $(DESTDIR)$(SCRIPT)
	$(INSTALL) -d $(DESTDIR)$(MANDIR)
	$(INSTALL_DATA) hatariui.1.gz $(DESTDIR)$(MANDIR)/
	$(INSTALL) -d $(DESTDIR)$(DATAPATH)
	$(INSTALL_SCRIPT) hatariui.py debugui.py $(DESTDIR)$(DATAPATH)/
	$(INSTALL_DATA) config.py dialogs.py hatari.py uihelpers.py $(DESTDIR)$(DATAPATH)/
	$(INSTALL_DATA) README TODO release-notes.txt *.png $(DESTDIR)$(DATAPATH)/
	$(INSTALL) -d $(DESTDIR)$(ICONPATH)
	$(INSTALL_DATA) hatari-icon.png $(DESTDIR)$(ICONPATH)/
	$(INSTALL) -d $(DESTDIR)$(DESKPATH)
	$(INSTALL_DATA) hatariui.desktop $(DESTDIR)$(DESKPATH)/