summaryrefslogtreecommitdiffstats
path: root/Makefile.in
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@suse.de>2005-09-19 13:29:14 +0000
committerAndreas Gruenbacher <agruen@suse.de>2005-09-19 13:29:14 +0000
commit6b96dd6643f020bac61886a20f79fc02ec6daff0 (patch)
treee0e2d6af18ef1c05ba0ac8beda6078d9aa65b6ab /Makefile.in
parentc50beee0cac17382c8f1c9526db30e8449d94f89 (diff)
downloadquilt-6b96dd6643f020bac61886a20f79fc02ec6daff0.tar.gz
- Rename MTA program to SENDMAIL, and improve configure.ac
(from John Vandenberg again, as several other recent things -- thanks!) - Must build the compatibility programs before creating the command reference (which extracts the help texts).
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in18
1 files changed, 12 insertions, 6 deletions
diff --git a/Makefile.in b/Makefile.in
index a653e7f..6c69530 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -33,7 +33,7 @@ MKTEMP := @MKTEMP@
MSGFMT := @MSGFMT@
DIFFSTAT := @DIFFSTAT@
RPMBUILD := @RPMBUILD@
-MTA := @MTA@
+SENDMAIL := @SENDMAIL@
COMPAT_SYMLINKS := @COMPAT_SYMLINKS@
COMPAT_PROGRAMS := @COMPAT_PROGRAMS@
@@ -121,7 +121,11 @@ SRC += changes2changelog
#-----------------------------------------------------------------------
-all : scripts $(COMPAT_PROGRAMS:%=compat/%) $(if $(MSGFMT),$(LINGUAS:%=po/%.mo))
+all : scripts compat-programs $(if $(MSGFMT),$(LINGUAS:%=po/%.mo))
+
+.PHONY :: compat-programs
+compat-programs : $(COMPAT_PROGRAMS:%=compat/%)
+ chmod +x $+
$(LIB:%=lib/%) : $(LIB_SRC:%.c=lib/%.o)
$(CC) -o $@ $(LDFLAGS) $^ $(LIBS)
@@ -172,9 +176,10 @@ doc/README : doc/README.in $(QUILT:%=quilt/%)
esac ; \
done 2>&1 < $< > $@
-doc/quilt.1: doc/quilt.1.in $(QUILT:%=quilt/%)
+doc/quilt.1: doc/quilt.1.in $(QUILT:%=quilt/%) compat-programs
@echo "quilt.1.in -> quilt.1"
- @here=`pwd`; \
+ @export PATH="`pwd`/compat:$$PATH"; \
+ here=`pwd`; \
while read line; do \
case "$$line" in \
'@REFERENCE''@') \
@@ -201,8 +206,9 @@ doc/quilt.1: doc/quilt.1.in $(QUILT:%=quilt/%)
done 2>&1 < $< > $@
.PHONY :: reference
-reference : $(QUILT:%=quilt/%) scripts/patchfns
- @dir=$(CURDIR); \
+reference : $(QUILT:%=quilt/%) compat-programs scripts/patchfns
+ @export PATH="`pwd`/compat:$$PATH"; \
+ dir=$(CURDIR); \
for i in $(filter-out scripts/patchfns,$+); \
do \
echo; \