File: Makefile

package info (click to toggle)
python-odf 1.4.2-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 28,620 kB
  • sloc: python: 22,659; javascript: 6,623; makefile: 360; xml: 2; sh: 1
file content (39 lines) | stat: -rw-r--r-- 1,581 bytes parent folder | download | duplicates (5)
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
all: odf odfuserfield.1 

txt: odfuserfield.txt

%.1: %.docbook 
	xmlto man $<

%.txt: %.docbook 
	xmlto txt $<

clean:
	rm -f *.1 *~ *.txt odf userfieldsFilledByPython*
odf:
	ln -s ../odf

test: clean odf
	@echo =============== output by Python2 =========================
	@echo ========= list userfields from ../tests/examples/userfields.odt
	@python2 odfuserfield -l ../tests/examples/userfields.odt
	@echo ========= injection of values =============================
	@python odfuserfield -o userfieldsFilledByPython2.odt \
	  -s username:jdoe -s firstname:John -s lastname:Doe \
	  -s "address:10 Downing Street" ../tests/examples/userfields.odt
	@echo ========= extraction of values =============================
	python odfuserfield -X username -X firstname -X lastname \
	  -X address userfieldsFilledByPython2.odt
	@echo ============================================================
	@echo
	@echo =============== output by Python3 =========================
	@echo ========= list userfields from ../tests/examples/userfields.odt
	@python3 odfuserfield -l ../tests/examples/userfields.odt
	@echo ========= injection of values =============================
	@python odfuserfield -o userfieldsFilledByPython3.odt \
	  -s username:jdoe -s firstname:John -s lastname:Doe \
	  -s "address:10 Downing Street" ../tests/examples/userfields.odt
	@echo ========= extraction of values =============================
	python odfuserfield -X username -X firstname -X lastname \
	  -X address userfieldsFilledByPython3.odt
	@echo ============================================================