File: Makefile.common

package info (click to toggle)
sailcut 1.3.2-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 4,504 kB
  • ctags: 1,066
  • sloc: cpp: 11,930; sh: 9,126; makefile: 214
file content (40 lines) | stat: -rw-r--r-- 913 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
38
39
40
# win32 icons

%.ico: %.svg
	for i in 48 32 16; do \
		$(INKSCAPE) -z --file=$< --export-png=$*.tmp.$$i --export-width=$$i --export-height=$$i || exit 1; \
	done
	$(ICOTOOL) -c -o $@ $*.tmp.48 $*.tmp.32 $*.tmp.16
	rm -f $*.tmp.*

# XPM icons

%.xpm: %.svg
	$(INKSCAPE) -z --file=$< --export-png=$*.tmp.png --export-width=32 --export-height=32
	$(PNGTOPNM) -alpha $*.tmp.png > $*.tmp.alpha
	$(PNGTOPNM) $*.tmp.png | $(PPMTOXPM) -alpha $*.tmp.alpha -name $*_xpm | sed -e 's/static char/static const char/g' > $@
	rm -f $*.tmp.*

# XML DocBook output

doc_srcdir := $(top_srcdir)/doc
 
%.html: %.docbook $(FIGS:.fig=.png) $(doc_srcdir)/sailcut-html.xsl
	$(XSLTPROC) -o $@ $(doc_srcdir)/sailcut-html.xsl $<

%.pdf: %.docbook $(FIGS)
	$(DBLATEX) -o $@ $<

# XFig graphics conversions

%.png: %.fig
	$(FIG2DEV) -L png -S2 $^ $@

%.svg: %.fig
	$(FIG2DEV) -L svg $^ $@

# translations

%.qm: %.ts
	$(LRELEASE) $< -qm $@