[Mew-dist 07842] Re: compilation scheme of Mew

SAKAI Kiyotaka ksakai at example.com
1999年 3月 2日 (火) 09:42:10 JST


>> In article <19990301232640A.kazu at example.com>, Kazu Yamamoto (山本和彦) <kazu at example.com> writes:

>> Makefile に
>> 
>> PERL=`which perl`
>> #PERL=/usr/local/bin/perl
>> 
>> といった行を入れておいて、sed 等で置換するだけで充分だと思います。

> Mew の Makefile はすでに sed の存在を仮定しているので、とりあえずこれ
> でいいと思います。作ってもらえますか? > 酒井さん

はい。

Makefile.diff が mew-1.94b12/Makefile に対するパッチ、添付の Makefile
が bin の下に置く Makefile です。
-- 
酒井 清隆 (E-mail: ksakai at example.com)

-------------- next part --------------
Index: Makefile
===================================================================
RCS file: /home/ksakai/cvsroot/mew-1.94b12/Makefile,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 Makefile
--- Makefile	1999/03/02 00:12:45	1.1.1.1
+++ Makefile	1999/03/02 00:39:09
@@ -30,6 +30,9 @@
 EMACS = xemacs
 #EMACS = mule
 
+PERL=`which perl`
+#PERL=/usr/local/bin/perl
+
 ##
 ## A directory where "mewencode" will be installed.
 ##
@@ -94,7 +97,7 @@
 	@echo 'Compiling EL files of Mew ... '
 	@echo 'PLEASE IGNORE WARNINGS IF DISPLAYED. TAKE IT EASY!'
 	$(EMACS) -batch -q -no-site-file -l ./$(TEMPFILE) -f mew-compile
-	cd $(BIN); ./configure; $(MAKE) CFLAGS="$(CFLAGS)" CC="$(CC)"
+	cd $(BIN); $(MAKE) CFLAGS="$(CFLAGS)" CC="$(CC)" PERL="$(PERL)"
 	@echo 'Compiling EL files of Mew ... done'
 
 $(OBJS): $(TEMPFILE) mew.el
@@ -122,9 +125,6 @@
 	$(RM) $(OBJS) $(TEMPFILE)
 	cd $(BIN); $(MAKE) clean
 
-distclean:
-	$(RM) $(OBJS) $(TEMPFILE)
-	cd $(BIN); $(MAKE) distclean
 ##
 ## End of Makefile
 ##
-------------- next part --------------
#
#  Makefile for mewencode and uumerge
#

SRCS = mewencode.c getopt.c
OBJS = mewencode.o getopt.o
PRG = mewencode
ALT = mewdecode mewcat
OTH = uumerge

BINDIR = /usr/local/bin
PERL = /usr/local/bin/perl

#CFLAGS = -g

all: $(PRG) $(OTH)

$(PRG) : $(OBJS)
	$(CC) -o $@ $(OBJS)
	rm -f $(ALT)
	for f in $(ALT); do \
	  ln $(PRG) $${f}; done

uumerge: uumerge.in
	sed -e "s|@PERL@|${PERL}|" < uumerge.in > uumerge

install: $(PRG) $(OTH)
	cp $(PRG) $(BINDIR)
	for f in $(ALT); do \
	  rm -f $(BINDIR)/$${f}; ln $(BINDIR)/$(PRG) $(BINDIR)/$${f}; done
	cp $(OTH) $(BINDIR)

clean:
	$(RM) $(OBJS) $(PRG) $(ALT) $(OTH)



Mew-dist メーリングリストの案内