w3m

Unnamed repository; edit this file to name it for gitweb.
git clone https://logand.com/git/w3m.git/
Log | Files | Refs | README

commit d339643a30bbd58a5863ae285216b05f31a78d9d
parent 4dfc6187f2ee7d73e1d5f99fca120ce74d7837c0
Author: ukai <ukai>
Date:   Fri,  9 Apr 2004 17:18:48 +0000

[w3m-dev 04063] about Makefile
* Makefile.in (DEFS): use CGIBIN_DIR instead of LIB_DIR
	(MAKE_ARGS): ditto
	(distclean): rm -f
* config.h.dist: use CGIBIN_DIR instead of LIB_DIR
* indep.c (w3m_lib_dir): ditto
* scripts/Makefile.in: ditto
* scripts/multipart/Makefile.in: ditto
* w3mimg/Makefile.in (clearn): remove w3mimg.a
From: SAKAI Kiyotaka <ksakai@kso.netwk.ntt-at.co.jp>

Diffstat:
MChangeLog | 12++++++++++++
MMakefile.in | 16++++++++--------
Mconfig.h.dist | 4++--
Mindep.c | 3++-
Mscripts/Makefile.in | 4++--
Mscripts/multipart/Makefile.in | 6+++---
Mw3mimg/Makefile.in | 2+-
7 files changed, 30 insertions(+), 17 deletions(-)

diff --git a/ChangeLog b/ChangeLog @@ -1,3 +1,15 @@ +2004-04-10 SAKAI Kiyotaka <ksakai@kso.netwk.ntt-at.co.jp> + + * [w3m-dev 04063] about Makefile + * Makefile.in (DEFS): use CGIBIN_DIR instead of LIB_DIR + (MAKE_ARGS): ditto + (distclean): rm -f + * config.h.dist: use CGIBIN_DIR instead of LIB_DIR + * indep.c (w3m_lib_dir): ditto + * scripts/Makefile.in: ditto + * scripts/multipart/Makefile.in: ditto + * w3mimg/Makefile.in (clearn): remove w3mimg.a + 2004-04-05 AIDA Shinra <shinra@j10n.org> * [w3m-dev 04049] w3m-cvs-1.914-misc.patch diff --git a/Makefile.in b/Makefile.in @@ -39,7 +39,7 @@ CFLAGS = $(OPTS) @CFLAGS@ $(CPPFLAGS) $(DEFS) WCCFLAGS = @WCCFLAGS@ CPPFLAGS = @CPPFLAGS@ DEFS = @DEFS@ -I. -I$(top_srcdir) -DAUXBIN_DIR=\"$(AUXBIN_DIR)\" \ - -DLIB_DIR=\"$(CGIBIN_DIR)\" -DHELP_DIR=\"$(HELP_DIR)\" \ + -DCGIBIN_DIR=\"$(CGIBIN_DIR)\" -DHELP_DIR=\"$(HELP_DIR)\" \ -DETC_DIR=\"$(ETC_DIR)\" -DCONF_DIR=\"$(CONF_DIR)\" \ -DRC_DIR=\"$(RC_DIR)\" \ -DLOCALEDIR=\"$(localedir)\" @@ -51,7 +51,7 @@ NLSTARGET = @NLSTARGET@ MAKE_ARGS = PERL='$(PERL)' MKDIR='$(MKDIR)' INSTALL='$(INSTALL)' \ BIN_DIR='$(bindir)' AUXBIN_DIR='$(AUXBIN_DIR)' \ - LIB_DIR='$(CGIBIN_DIR)' \ + CGIBIN_DIR='$(CGIBIN_DIR)' \ HELP_DIR='$(HELP_DIR)' MAN_DIR='$(mandir)' ETC_DIR='$(ETC_DIR)' \ CONF_DIR='$(CONF_DIR)' \ RC_DIR='$(RC_DIR)' DESTDIR='$(DESTDIR)' KEYBIND_SRC='$(KEYBIND_SRC)' @@ -292,12 +292,12 @@ distclean: clean do \ (cd $$subdir && $(MAKE) distclean); \ done - -$(RM) config.cache config.log config.status - -$(RM) w3mhelp-w3m_en.html w3mhelp-w3m_ja.html - -$(RM) w3mhelp-lynx_en.html w3mhelp-lynx_ja.html - -$(RM) version.c - -$(RM) posubst - -$(RM) config.h Makefile + -$(RM) -f config.cache config.log config.status + -$(RM) -f w3mhelp-w3m_en.html w3mhelp-w3m_ja.html + -$(RM) -f w3mhelp-lynx_en.html w3mhelp-lynx_ja.html + -$(RM) -f version.c + -$(RM) -f posubst + -$(RM) -f config.h Makefile -$(RM) -f *core sweep: diff --git a/config.h.dist b/config.h.dist @@ -71,7 +71,7 @@ BIN_DIR = /usr/local/bin AUXBIN_DIR = /usr/local/lib/w3m -LIB_DIR = /usr/local/lib/w3m/cgi-bin +CGIBIN_DIR = /usr/local/lib/w3m/cgi-bin HELP_DIR = /usr/local/share/w3m MAN_DIR = /usr/local/man MAN1_DIR = $(MAN_DIR)/man1 @@ -154,7 +154,7 @@ INSTALL_W3MIMGDISPLAY=$(INSTALL_PROGRAM) #define DEF_MIGEMO_COMMAND "migemo -t egrep /usr/share/migemo/migemo-dict" #define AUXBIN_DIR "/usr/local/lib/w3m" -#define LIB_DIR "/usr/local/lib/w3m/cgi-bin" +#define CGIBIN_DIR "/usr/local/lib/w3m/cgi-bin" #define HELP_DIR "/usr/local/lib/w3m" #define ETC_DIR "/usr/local/etc/w3m" #define HELP_FILE "w3mhelp.html" diff --git a/indep.c b/indep.c @@ -723,7 +723,8 @@ w3m_auxbin_dir() char * w3m_lib_dir() { - return w3m_dir("W3M_LIB_DIR", LIB_DIR); + /* FIXME: use W3M_CGIBIN_DIR? */ + return w3m_dir("W3M_LIB_DIR", CGIBIN_DIR); } char * diff --git a/scripts/Makefile.in b/scripts/Makefile.in @@ -81,7 +81,7 @@ $(SUBDIRS): install: $(LIB_TARGETS) $(HELP_TARGETS) -$(MKDIR) $(DESTDIR)$(AUXBIN_DIR) - -$(MKDIR) $(DESTDIR)$(LIB_DIR) + -$(MKDIR) $(DESTDIR)$(CGIBIN_DIR) -$(MKDIR) $(DESTDIR)$(HELP_DIR) for file in $(AUXBIN_TARGETS); \ do \ @@ -89,7 +89,7 @@ install: $(LIB_TARGETS) $(HELP_TARGETS) done for file in $(LIB_TARGETS); \ do \ - $(INSTALL_SCRIPT) $$file $(DESTDIR)$(LIB_DIR); \ + $(INSTALL_SCRIPT) $$file $(DESTDIR)$(CGIBIN_DIR); \ done for file in w3mhelp-*.pl; \ do \ diff --git a/scripts/multipart/Makefile.in b/scripts/multipart/Makefile.in @@ -47,16 +47,16 @@ all: $(LIB_TARGETS) $(LIB_TARGETS): install: $(LIB_TARGETS) - -$(MKDIR) $(DESTDIR)$(LIB_DIR) + -$(MKDIR) $(DESTDIR)$(CGIBIN_DIR) for file in $(LIB_TARGETS); \ do \ - $(INSTALL_SCRIPT) $$file $(DESTDIR)$(LIB_DIR); \ + $(INSTALL_SCRIPT) $$file $(DESTDIR)$(CGIBIN_DIR); \ done uninstall: -for file in $(LIB_TARGETS); \ do \ - rm -f $(LIB_DIR)/$$file; \ + rm -f $(CGIBIN_DIR)/$$file; \ done clean: diff --git a/w3mimg/Makefile.in b/w3mimg/Makefile.in @@ -31,13 +31,13 @@ clean: @for dir in fb x11; do \ (cd $$dir && $(MAKE) clean RM=$(RM)); \ done + -$(RM) -f w3mimg.a distclean: clean for subdir in fb x11; \ do \ (cd $$subdir && $(MAKE) distclean); \ done - -$(RM) -f w3mimg.a -$(RM) -f Makefile