summaryrefslogtreecommitdiff
path: root/themes/SuSE/Makefile
blob: 9d0275042e503345a7c89c5becd6adedeeb9ea4e (plain)
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
HELP2TXT   = $(BINDIR)help2txt
MKBOOTMSG  = $(BINDIR)mkbootmsg
BFLAGS     = -O -v -L ../..
INCLUDES   = $(wildcard *.inc)
HELPBOOT   = help-boot.en.txt help-boot.cs.txt help-boot.sk.txt
HELPINST   = help-install.en.txt
TRANSL     = texts.en texts.cs texts.de texts.sk     

FILES_INST = init $(TRANSL) help.en \
	     16x16.font kroete.data background.pcx splash.pcx
FILES_BOOT = init $(TRANSL) help.en help.cs help.sk 16x16.font background.pcx

%.txt: %.html
	$(HELP2TXT) $< >$@

.PHONY: all themes clean po

all: themes

po:
	make -C po

themes: boot install

boot install: po

boot: boot.config $(INCLUDES) $(HELPBOOT)
	@mkdir -p $@
	@cp -a po/texts.* .
	$(MKBOOTMSG) $(BFLAGS) -l $@/log -c $< init
	@cp help-$@.en.txt help.en
	@cp help-$@.cs.txt help.cs
	@cp help-$@.sk.txt help.sk
	@echo $(FILES_BOOT) | sed -e 's/ /\n/g' | cpio --quiet -o >$@/message
	@mv init help.en help.cs help.sk $@
	@mv texts.* $@

install: install.config $(INCLUDES) $(HELPINST)
	@mkdir -p $@
	@cp -a po/texts.* .
	$(MKBOOTMSG) $(BFLAGS) -l $@/log -c $< init
#	@echo de >lang
	@cp help-$@.en.txt help.en
#	@cp help-$@.de.txt help.de
	@echo $(FILES_INST) | sed -e 's/ /\n/g' | cpio --quiet -o >$@/bootlogo
	@mv init help.en $@
	@mv texts.* $@
#	@rm -f lang

clean:
	make -C po clean
	rm -f *.txt *~
	rm -rf boot install