File: Makefile

package info (click to toggle)
pyntor 0.6-4.1
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 476 kB
  • ctags: 272
  • sloc: python: 4,009; makefile: 78; sh: 34
file content (44 lines) | stat: -rw-r--r-- 1,750 bytes parent folder | download | duplicates (4)
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
38
39
40
41
42
43
44
prefix = /usr/local

all:
	@echo "Installation: make install prefix=/..."
	@echo "Default prefix is /usr/local (requires root access)"

install:
	@echo "Installing pyntor to prefix $(prefix)..."
	@echo "-- executables ($(prefix)/bin)"
	@mkdir -p $(prefix)/bin
	@cp pyntor $(prefix)/bin
	@cp selfrun/pyntor-selfrun $(prefix)/bin
	@cp tools/pyntor-components $(prefix)/bin
	@echo "-- libraries ($(prefix)/share/pyntor)"
	@mkdir -p $(prefix)/share/pyntor
	@cp tools/sdlnewstuffpyntor.py $(prefix)/share/pyntor
	@echo "-- data files ($(prefix)/share/pyntor)"
	@mkdir -p $(prefix)/share/pyntor
	@cp -r components $(prefix)/share/pyntor
	@cp selfrun/pyntor-selfrun.template $(prefix)/share/pyntor
	@cp data/pyntor-splash.png $(prefix)/share/pyntor
	@cp data/pyntor-logo.png $(prefix)/share/pyntor
	@echo "-- desktop files ($(prefix)/share/{applications,mimelnk,icons})"
	@mkdir -p $(prefix)/share/applications
	@cp data/pyntor.desktop $(prefix)/share/applications
	@mkdir -p $(prefix)/share/mimelnk/application
	@cp data/x-pyntor.desktop $(prefix)/share/mimelnk/application
	@mkdir -p $(prefix)/share/icons
	@cp data/pyntor.png $(prefix)/share/icons
	@mkdir -p $(prefix)/share/doc/pyntor
	@echo "-- documentation ($(prefix)/share/doc/pyntor)"
	@cp doc/documentation.txt doc/components.txt README $(prefix)/share/doc/pyntor
	@cp selfrun/README.selfrun $(prefix)/share/doc/pyntor
	@cp tools/pyntor-minigal.sh $(prefix)/share/doc/pyntor
	@gzip -f -9 $(prefix)/share/doc/pyntor/pyntor-minigal.sh || true
	@mkdir -p $(prefix)/share/man/man1
	@cp doc/pyntor.1 $(prefix)/share/man/man1
	@cp tools/pyntor-components.1 $(prefix)/share/man/man1
	@cp selfrun/pyntor-selfrun.1 $(prefix)/share/man/man1
	@echo "Done with installation."

clean:
	rm -f components/*.pyc