File: Makefile

package info (click to toggle)
pymecavideo 8.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 13,496 kB
  • sloc: python: 4,983; xml: 454; makefile: 148
file content (23 lines) | stat: -rw-r--r-- 580 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
SOURCES=$(shell ls *.md)
SOURCES_W32 = $(shell ls *.svg) # image sources (width 32 px)
GENERATED_W32 = $(patsubst %.svg, %-w32.png, $(SOURCES_W32)) # generated images
TARGETS=$(SOURCES:.md=.html)

all: $(TARGETS) images help-fr.html

%.html: %.md
	pandoc --css help-style.css --css static/jquery-ui/themes/base/jquery-ui.css --standalone $< -o $@

images: $(GENERATED_W32)

%-w32.png: %.svg
	if [ -x /usr/bin/rsvg-convert ]; then \
	  rsvg-convert -w 32 $< -o $@; \
	else \
	  inkscape --export-png=$@ --export-width=32 $<; \
	fi

clean:
	rm -f *~ *.html
	rm -f $(GENERATED_W32)