[Po4a-commits] "po-debconf Makefile,1.25,1.26"

Denis Barbier barbier-guest at alioth.debian.org
Wed Jan 26 18:55:37 UTC 2011


Update of /cvsroot/po4a/po-debconf
In directory alioth:/tmp/cvs-serv20715

Modified Files:
	Makefile 
Log Message:
Copy Makefile from https://bugzilla.redhat.com/show_bug.cgi?id=591389
to help integration in Fedora.  Thanks Oron Peled.
This file has been slightly modified.


Index: Makefile
===================================================================
RCS file: /cvsroot/po4a/po-debconf/Makefile,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -d -r1.25 -r1.26
--- Makefile	2 Feb 2006 20:55:48 -0000	1.25
+++ Makefile	26 Jan 2011 18:55:35 -0000	1.26
@@ -1,5 +1,9 @@
 
-prefix 	= /usr/local
+prefix		= /usr/local
+exec_prefix	= $(prefix)
+bindir		= $(exec_prefix)/bin
+datadir		= $(prefix)/share
+pkgdatadir	= $(datadir)/po-debconf
 
 all:
 	$(MAKE) -C doc
@@ -9,21 +13,34 @@
 
 debconf-updatepo po2debconf: FORCE
 	@sed \
-   -e 's@\(: \$${PODEBCONF_LIB=\)[^}]*}@\1$(prefix)/share/intltool-debian}@' \
-   -e 's@\(: \$${PODEBCONF_ENCODINGS=\)[^}]*}@\1$(prefix)/share/po-debconf/encodings}@' \
+   -e 's@\(: \$${PODEBCONF_LIB=\)[^}]*}@\1$(datadir)/intltool-debian}@' \
+   -e 's@\(: \$${PODEBCONF_ENCODINGS=\)[^}]*}@\1$(pkgdatadir)/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";@' \
+   -e 's@\(\$$ENV{PODEBCONF_LIB} ||= \)[^;]*;@\1"$(datadir)/intltool-debian";@' \
+   -e 's@\(\$$ENV{PODEBCONF_ENCODINGS} ||= \)[^;]*;@\1"$(pkgdatadir)/encodings";@' \
+   -e 's@\(\$$ENV{PODEBCONF_HEADER} ||= \)[^;]*;@\1"$(pkgdatadir)/pot-header";@' \
 		$@ > $@.tmp && mv $@.tmp $@
 	@chmod a+x $@
 
+install:
+	mkdir -p $(DESTDIR)$(bindir)
+	install -m 0755 debconf-updatepo po2debconf debconf-gettextize $(DESTDIR)$(bindir)/
+	install -m 0755 podebconf-display-po podebconf-report-po $(DESTDIR)$(bindir)/
+	mkdir -p $(DESTDIR)$(pkgdatadir)/templates
+	install -m 0644 encodings pot-header $(DESTDIR)$(pkgdatadir)
+	for t in translators submit call; do \
+		install -m 0644 podebconf-report-po_templates/$$t \
+			$(DESTDIR)$(pkgdatadir)/templates; \
+		install -m 0644 podebconf-report-po_templates/$$t-po \
+			$(DESTDIR)$(pkgdatadir)/templates; \
+	done
+
 reset: FORCE
-	@$(MAKE) all prefix=/usr
+	@$(MAKE) all prefix=$(prefix)
 
 clean:
 	@$(MAKE) -C doc clean




More information about the Po4a-commits mailing list