summaryrefslogtreecommitdiffstats
path: root/Makefile.in
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@suse.de>2003-02-16 14:51:04 +0000
committerAndreas Gruenbacher <agruen@suse.de>2003-02-16 14:51:04 +0000
commitec54a18f43dc06601aa04b78c3efc4ffd08d1a86 (patch)
treeecab2df09713959d472d1aa5a527f279d60e6b37 /Makefile.in
parent45975d4686c7302fb08add49e168b2abcb234d2d (diff)
downloadquilt-ec54a18f43dc06601aa04b78c3efc4ffd08d1a86.tar.gz
Merge a slightly slimmed down version of James Rowe <Jay@jnrowe.uklinux.net>'s
--enable-nls option, and test for MSGFMT. (I hope this works as expected!)
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in15
1 files changed, 11 insertions, 4 deletions
diff --git a/Makefile.in b/Makefile.in
index c0c5e43..9829de8 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -22,6 +22,13 @@ BASH := @BASH@
DIFF := @DIFF@
PATCH := @PATCH@
MKTEMP := @MKTEMP@
+MSGFMT := @MSGFMT@
+
+ifeq "$(MSGFMT)" ""
+MAKE_NLS := @true
+else
+MAKE_NLS := $(MAKE)
+endif
CFLAGS := @CFLAGS@ -Wall
@@ -79,6 +86,7 @@ SRC += $(PO:%=po/%)
#-----------------------------------------------------------------------
all : scripts
+ $(MAKE_NLS) -C po all BUILD_ROOT=$(BUILD_ROOT)
scripts : $(BIN:%=bin/%) $(QUILT:%=quilt/%) $(SCRIPTS:%=scripts/%) \
$(LIB:%=lib/%) $(DOC:%=doc/%) $(MAN1)
@@ -162,8 +170,8 @@ $(PACKAGE).spec : $(PACKAGE).spec.in $(PACKAGE).changes Makefile \
@chmod --reference=$< $@
Makefile : Makefile.in
- echo "Please run ./configure by hand"
- false
+ @echo "Please run ./configure by hand"
+ @false
install : scripts
@INSTALL@ -d $(BUILD_ROOT)$(bindir)
@@ -187,10 +195,9 @@ install : scripts
@INSTALL@ -d $(BUILD_ROOT)$(mandir)/man1
@INSTALL@ -m 644 $(MAN1) $(BUILD_ROOT)$(mandir)/man1/
- $(MAKE) -C po install BUILD_ROOT=$(BUILD_ROOT) \
+ $(MAKE_NLS) -C po install BUILD_ROOT=$(BUILD_ROOT) \
LINGUAS="$(LINGUAS)" localedir=$(localedir)
-
clean :
rm -f $(DIRT)