[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: wrong install in proto/Makefile



On 14-Apr-00 at 12:42, Matti Aarnio (mea@nic.funet.fi) wrote:

>   Not good.  That assumes the compilation and installation is happening
>   "in place", never in adjacent directory.  This is better:
> 
> -       cd $(srcdir)/db; \
> -       for x in aliases fqdnaliases dbases.conf localnames routes \
> -                smtp-policy.* kill-headers ;   \
> +       P=$(srcdir)/db; \
> +       for x in $$P/aliases $$P/fqdnaliases $$P/dbases.conf $$P/localnames
> \ +                $$P/routes $$P/smtp-policy.* $$P/kill-headers ;       
> \ 
> 
>   I think I am right, am I not ?

Absolutely!  I meant this, just missed.

Another thing: in compat/rmail/Makefile.in

mkdir: "/bin": Exists but is not a directory
*** Error code 2
make: Fatal error: Command failed for target `install'

this is because on Solaris, /bin is a symlink to /usr/bin.
The following helps but you miight want to do it in another way...

@@ -50,7 +50,7 @@
 # comment (loudly!) to the user --- who on earth can have
 # any modern system without symlinks ?
 install: $(LIBDEB) rmail
-       @rdir=`echo $(RMAILPATH)|sed -e 's!/[^/]*$$!!'`; $(MKDIR) -p $$rdir;
echo "  rdir = $$rdir"
+       @rdir=`echo $(RMAILPATH)|sed -e 's!/[^/]*$$!!'`; $(MKDIR) -p $$rdir ||
true; echo "  rdir = $$rdir"
        @$(INSTALL) -m 0755 rmail $(prefix)$(MAILBIN)/rmail.x ; \
        mv $(prefix)$(MAILBIN)/rmail.x $(prefix)$(MAILBIN)/rmail
        @if [ $(LN_S) = "ln -s" -a    

Eugene