File: Makefile

package info (click to toggle)
po-debconf 1.0.22
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,448 kB
  • sloc: perl: 1,696; sh: 326; makefile: 81
file content (38 lines) | stat: -rw-r--r-- 964 bytes parent folder | download | duplicates (4)
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

prefix 	= /usr

all:
	$(MAKE) -C doc
	$(MAKE) fix

fix: debconf-gettextize debconf-updatepo po2debconf

debconf-updatepo po2debconf: FORCE
	@sed \
   -e 's@\(: \$${PODEBCONF_LIB=\)[^}]*}@\1$(prefix)/share/intltool-debian}@' \
   -e 's@\(: \$${PODEBCONF_ENCODINGS=\)[^}]*}@\1$(prefix)/share/po-debconf/encodings}@' \
		$@ > $@.tmp && mv $@.tmp $@
	@chmod a+x $@

debconf-gettextize: FORCE
	@sed \
   -e 's@\(\$$ENV{PODEBCONF_LIB} ||= \)[^;]*;@\1"$(prefix)/share/intltool-debian";@' \
   -e 's@\(\$$ENV{PODEBCONF_ENCODINGS} ||= \)[^;]*;@\1"$(prefix)/share/po-debconf/encodings";@' \
   -e 's@\(\$$ENV{PODEBCONF_HEADER} ||= \)[^;]*;@\1"$(prefix)/share/po-debconf/pot-header";@' \
		$@ > $@.tmp && mv $@.tmp $@
	@chmod a+x $@

reset: FORCE
	@$(MAKE) all prefix=/usr

clean:
	@$(MAKE) -C doc clean
	-@rm -rf tests/tmp

deb:
	fakeroot debian/rules clean
	dh_clean
	dpkg-buildpackage -rfakeroot -ICVS -I.cvsignore -I.scvsrc -I.git -I.gitignore

.PHONY: FORCE fix reset