File: Makefile

package info (click to toggle)
pymecavideo 8.0-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 13,496 kB
  • sloc: python: 4,983; xml: 454; makefile: 148
file content (27 lines) | stat: -rw-r--r-- 809 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
DESTDIR =
HELPFILES = $(shell ls -d data/help/help-*.html data/help/*.png data/help/*.svg data/help/*.css data/help/static)
PACKAGE = python3-mecavideo
MANPAGES_LANG_SRC = $(shell ls pymecavideo.??.xml)
MANPAGES_LANG  = $(patsubst %.xml, %.1, $(MANPAGES_LANG_SRC))

all:
	for d in src data/help; do \
	  DESTDIR=$(DESTDIR) $(MAKE) -C $$d $@ ;\
	done

manpages: pymecavideo.1  $(MANPAGES_LANG)

pymecavideo.1: manpage.xml
	xsltproc --nonet /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl manpage.xml

%.1 : %.xml
	xsltproc --nonet /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl $<

clean:
	rm -rf build
	rm -f video_*.jpg src/interfaces/Ui_* src/interfaces/*_rc.py
	rm -f data/lang/*.qm
	find . -name __pycache__ -o -name "*~" | xargs rm -rf


.PHONY: clean all manpages