From 7bef0d328c070c57601ee4635c7f2bbac63529b7 Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Wed, 12 Mar 2003 17:20:39 +0000 Subject: [w3m-dev 03818] fix autoconf * Makefile.in (CGIBIN_DIR): added (AUXBIN_DIR): added (HELP_DIR): added (RC_DIR): added (MAKE_ARGS): added (TARGET): use $(package) (MAN1_TARGET): ditto (install): use $(*_DIR) * acinclude.m4 (AC_W3M_TERMLIB): added (AC_W3M_GC): default search prefix /usr /usr/local $HOME fix searches (AC_W3M_SSL): fix bugs * config.h (RC_DIR): remove tailing / (SYS_MAILCAP): use ETC_DIR (SYS_MIMETYPES): ditto (USER_MIMETYPES): homedir * configure.in: quote (AC_W3M_TERMLIB): use * Bonus/oldconfigure.sh: rewrite From: Hironori SAKAMOTO --- Makefile.in | 52 +++++++++++++++++++++++++++++++++------------------- 1 file changed, 33 insertions(+), 19 deletions(-) (limited to 'Makefile.in') diff --git a/Makefile.in b/Makefile.in index 23e4741..7d3e0f6 100644 --- a/Makefile.in +++ b/Makefile.in @@ -21,12 +21,25 @@ sysconfdir = @sysconfdir@ top_srcdir = @top_srcdir@ DESTDIR = +CGIBIN_DIR = $(libexecdir)/$(package)/cgi-bin +AUXBIN_DIR = $(libexecdir)/$(package) +HELP_DIR = $(datadir)/$(package) +RC_DIR = ~/.$(package) + CFLAGS = $(OPTS) @CFLAGS@ $(DEFS) CPPFLAGS = @CPPFLAGS@ -DEFS = @DEFS@ -I. -I$(top_srcdir) -DAUXBIN_DIR=\"$(libexecdir)\" -DLIB_DIR=\"$(libdir)\" -DHELP_DIR=\"$(datadir)\" -DETC_DIR=\"$(sysconfdir)\" +DEFS = @DEFS@ -I. -I$(top_srcdir) -DAUXBIN_DIR=\"$(AUXBIN_DIR)\" \ + -DLIB_DIR=\"$(CGIBIN_DIR)\" -DHELP_DIR=\"$(HELP_DIR)\" \ + -DETC_DIR=\"$(sysconfdir)\" -DRC_DIR=\"$(RC_DIR)\" LDFLAGS = @LDFLAGS@ LIBS = -L. -lindep @LIBS@ +MAKE_ARGS = PERL='$(PERL)' MKDIR='$(MKDIR)' INSTALL='$(INSTALL)' \ + BIN_DIR='$(bindir)' AUXBIN_DIR='$(AUXBIN_DIR)' \ + LIB_DIR='$(CGIBIN_DIR)' \ + HELP_DIR='$(HELP_DIR)' MAN_DIR='$(mandir)' ETC_DIR='$(sysconfdir)' \ + RC_DIR='$(RC_DIR)' DESTDIR='$(DESTDIR)' KEYBIND_SRC='$(KEYBIND_SRC)' + IMGCFLAGS = @IMGX11CFLAGS@ @IMGFBCFLAGS@ IMGLDFLAGS = @IMGX11LDFLAGS@ @IMGFBLDFLAGS@ @@ -68,12 +81,12 @@ IMGOBJS=@IMGOBJS@ EXT=@EXEEXT@ -TARGET=w3m$(EXT) +TARGET=$(package)$(EXT) BOOKMARKER=w3mbookmark$(EXT) HELPER=w3mhelperpanel$(EXT) INFLATE=inflate$(EXT) IMGDISPLAY=w3mimgdisplay$(EXT) -MAN1_TARGET=w3m.1 +MAN1_TARGET=$(package).1 MAN1=doc/w3m.1 MAN1_JA=doc-jp/w3m.1 @@ -160,67 +173,68 @@ install: install-core install-scripts install-core: $(TARGETS) -$(MKDIR) $(DESTDIR)$(bindir) - -$(MKDIR) $(DESTDIR)$(libdir) - -$(MKDIR) $(DESTDIR)$(libexecdir) - -$(MKDIR) $(DESTDIR)$(datadir) + -$(MKDIR) $(DESTDIR)$(AUXBIN_DIR) + -$(MKDIR) $(DESTDIR)$(CGIBIN_DIR) + -$(MKDIR) $(DESTDIR)$(HELP_DIR) -$(MKDIR) $(DESTDIR)$(mandir)/man1 -$(MKDIR) $(DESTDIR)$(mandir)/ja/man1 $(INSTALL_PROGRAM) $(TARGET) $(DESTDIR)$(bindir)/$(TARGET) - $(INSTALL_DATA) $(HELP_FILE) $(DESTDIR)$(datadir)/$(HELP_TARGET) + $(INSTALL_DATA) $(HELP_FILE) $(DESTDIR)$(HELP_DIR)/$(HELP_TARGET) $(INSTALL_DATA) $(MAN1) $(DESTDIR)$(mandir)/man1/$(MAN1_TARGET) $(INSTALL_DATA) $(MAN1_JA) $(DESTDIR)$(mandir)/ja/man1/$(MAN1_TARGET) targets="$(AUXBIN_TARGETS)"; for file in $$targets; \ do \ case $$file in \ - $(IMGDISPLAY)) $(INSTALL_W3MIMGDISPLAY) $$file $(DESTDIR)$(libexecdir)/$$file;; \ - *) $(INSTALL_PROGRAM) $$file $(DESTDIR)$(libexecdir)/$$file;; \ + $(IMGDISPLAY)) $(INSTALL_W3MIMGDISPLAY) $$file \ + $(DESTDIR)$(AUXBIN_DIR)/$$file;; \ + *) $(INSTALL_PROGRAM) $$file $(DESTDIR)$(AUXBIN_DIR)/$$file;; \ esac; \ done for file in $(LIB_TARGETS); \ do \ - $(INSTALL_PROGRAM) $$file $(DESTDIR)$(libdir)/$$file; \ + $(INSTALL_PROGRAM) $$file $(DESTDIR)$(CGIBIN_DIR)/$$file; \ done install-helpfile: - -$(MKDIR) $(DESTDIR)$(datadir) + -$(MKDIR) $(DESTDIR)$(HELP_DIR) for file in $(HELP_ALLFILES); \ do \ - $(INSTALL_DATA) $$file $(DESTDIR)$(datadir)/$$file; \ + $(INSTALL_DATA) $$file $(DESTDIR)$(HELP_DIR)/$$file; \ done all-scripts: for dir in $(SCRIPTSUBDIRS); \ do \ - (cd $$dir; $(MAKE) PERL='$(PERL)' BIN_DIR='$(bindir)' AUXBIN_DIR='$(libexecdir)' LIB_DIR='$(libdir)' HELP_DIR='$(datadir)' RC_DIR='$(sysconfdir)' KEYBIND_SRC='$(KEYBIND_SRC)'); \ + (cd $$dir; $(MAKE) $(MAKE_ARGS)); \ done install-scripts: all-scripts topdir=`pwd`; \ for dir in $(SCRIPTSUBDIRS); \ do \ - (cd $$dir; $(MAKE) PERL='$(PERL)' MKDIR='$(MKDIR)' BIN_DIR='$(bindir)' AUXBIN_DIR='$(libexecdir)' LIB_DIR='$(libdir)' HELP_DIR='$(datadir)' MAN_DIR='$(mandir)' DESTDIR='$(DESTDIR)' INSTALL="$(INSTALL)" install); \ + (cd $$dir; $(MAKE) $(MAKE_ARGS) install); \ done uninstall: -$(RM) $(bindir)/$(TARGET) -for file in $(AUXBIN_TARGETS); \ do \ - $(RM) -f $(libexecdir)/$$file; \ + $(RM) -f $(AUXBIN_DIR)/$$file; \ done -for file in $(LIB_TARGETS); \ do \ - $(RM) -f $(libdir)/$$file; \ + $(RM) -f $(CGIBIN_DIR)/$$file; \ done -for file in $(HELP_ALLFILES); \ do \ - $(RM) -f $(datadir)/$$file; \ + $(RM) -f $(HELP_DIR)/$$file; \ done - -$(RM) -f $(datadir)/$(HELP_TARGET) + -$(RM) -f $(HELP_DIR)/$(HELP_TARGET) -$(RM) -f $(mandir)/man1/$(MAN1_TARGET) -$(RM) -f $(mandir)/ja/man1/$(MAN1_TARGET) -for dir in $(SCRIPTSUBDIRS); \ do \ - (cd $$dir; $(MAKE) BIN_DIR='$(bindir)' LIB_DIR='$(libdir)' HELP_DIR='$(datadir)' MAN_DIR='$(mandir)' uninstall); \ + (cd $$dir; $(MAKE) $(MAKE_ARGS) uninstall); \ done clean: sweep -- cgit v1.2.3