File: opendingux.mk

package info (click to toggle)
scummvm 2.9.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 450,580 kB
  • sloc: cpp: 4,299,825; asm: 28,322; python: 12,901; sh: 11,302; java: 9,289; xml: 7,895; perl: 2,639; ansic: 2,465; yacc: 1,670; javascript: 1,020; makefile: 933; lex: 578; awk: 275; objc: 82; sed: 11; php: 1
file content (55 lines) | stat: -rw-r--r-- 1,652 bytes parent folder | download | duplicates (2)
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
45
46
47
48
49
50
51
52
53
54
55
OD_EXE_STRIPPED := scummvm_stripped$(EXEEXT)
bundle = od-opk
OPKNAME = $(OPENDINGUX_TARGET)

all: $(OD_EXE_STRIPPED)

$(OD_EXE_STRIPPED): $(EXECUTABLE)
	$(STRIP) $< -o $@

$(bundle): all
	$(MKDIR) $(bundle)
	$(CP) $(DIST_FILES_DOCS) $(bundle)/

ifneq ($(OPENDINGUX_TARGET), rs90)
	$(MKDIR) $(bundle)/themes
	$(CP) $(DIST_FILES_THEMES) $(bundle)/themes/
endif

ifdef DIST_FILES_ENGINEDATA
	$(MKDIR) $(bundle)/engine-data
	$(CP) $(DIST_FILES_ENGINEDATA) $(bundle)/engine-data/
endif
ifdef DIST_FILES_NETWORKING
	$(CP) $(DIST_FILES_NETWORKING) $(bundle)/
endif
ifdef DIST_FILES_VKEYBD
	$(CP) $(DIST_FILES_VKEYBD) $(bundle)/
endif
ifdef DYNAMIC_MODULES
	$(MKDIR) $(bundle)/plugins
	$(CP) $(PLUGINS) $(bundle)/plugins/
endif
	$(CP) $(EXECUTABLE) $(bundle)/scummvm

	$(CP) $(srcdir)/dists/opendingux/scummvm.png $(bundle)/
	$(CP) $(srcdir)/dists/opendingux/startUI.$(OPENDINGUX_TARGET).desktop $(bundle)/
ifdef dualopk
	$(CP) $(srcdir)/dists/opendingux/startGame.$(OPENDINGUX_TARGET).desktop $(bundle)/
	$(CP) $(srcdir)/dists/opendingux/scummvm.sh $(bundle)/
endif

	$(CP) $(srcdir)/backends/platform/sdl/opendingux/README.OPENDINGUX $(bundle)/README.man.txt
	echo >> $(bundle)/README.man.txt
	echo '[General README]' >> $(bundle)/README.man.txt
	echo >> $(bundle)/README.man.txt
	cat $(srcdir)/README.md | sed -e 's/\[/⟦/g' -e 's/\]/⟧/g' -e '/^1\.1)/,$$ s/^[0-9][0-9]*\.[0-9][0-9]*.*/\[&\]/' >> $(bundle)/README.man.txt

od-make-opk: $(bundle)
	$(STRIP) $(bundle)/scummvm

ifdef dualopk
	$(srcdir)/dists/opendingux/make-opk.sh -d $(bundle) -o scummvm_$(OPKNAME)_dual
else
	$(srcdir)/dists/opendingux/make-opk.sh -d $(bundle) -o scummvm_$(OPKNAME)
endif