~ubuntu-branches/ubuntu/quantal/sgt-puzzles/quantal

« back to all changes in this revision

Viewing changes to .pc/201_make-more-docs.diff/Makefile.doc

  • Committer: Bazaar Package Importer
  • Author(s): Ben Hutchings
  • Date: 2011-03-01 04:16:54 UTC
  • mfrom: (1.2.9 upstream)
  • mto: This revision was merged to the branch mainline in revision 18.
  • Revision ID: james.westby@ubuntu.com-20110301041654-949qy9qrroziy7vq
* New upstream version:
  - Add Range and Signpost puzzles
  - Use stock icons and conventional order for dialog buttons
  - Use Cairo for screen rendering
* Update German translation, thanks to Helge Kreutzmann
* Remove or update patches applied or partially applied upstream
* Use Debian source format 3.0 (quilt)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
all: puzzles.hlp puzzles.txt HACKING
 
2
 
 
3
puzzles.hlp puzzles.txt: puzzles.but
 
4
        halibut --winhelp=puzzles.hlp --text=puzzles.txt puzzles.but
 
5
 
 
6
HACKING: devel.but
 
7
        halibut --text=HACKING devel.but
 
8
 
 
9
chm: puzzles.hhp
 
10
puzzles.hhp: puzzles.but chm.but
 
11
        halibut --html puzzles.but chm.but
 
12
 
 
13
LANGUAGES := en $(patsubst po/%.po,%,$(wildcard po/*.po))
 
14
 
 
15
po/puzzles-doc.pot: puzzles.but
 
16
        po4a-gettextize -f halibut -m $< -p $@
 
17
po/%.po: po/puzzles-doc.pot
 
18
        msgmerge -o po/$*.new.po po/$*.po $<
 
19
        mv po/$*.new.po po/$*.po
 
20
update-po: po/puzzles-doc.pot $(wildcard po/*.po)
 
21
.PHONY: update-po
 
22
 
 
23
doc/puzzles.but.%: puzzles.but po/%.po
 
24
        mkdir -p doc
 
25
        po4a-translate -k 0 -f halibut -m puzzles.but -p po/$*.po -l $@
 
26
.PRECIOUS: $(addprefix doc/puzzles.but.,$(LANGUAGES))
 
27
 
 
28
doc/puzzles.txt.%: doc/puzzles.but.%
 
29
        halibut --text=$@ --input-charset=UTF-8 $<
 
30
all: $(addprefix doc/puzzles.txt.,$(filter-out en,$(LANGUAGES)))
 
31
 
 
32
clean:
 
33
        rm -f puzzles.hlp puzzles.txt HACKING *.html *.hh[pck]
 
34
        rm -rf doc