w3m

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

Makefile.in (3831B)


      1 @SET_MAKE@
      2 SHELL=@SHELL@
      3 PACKAGE = @PACKAGE@
      4 VERSION = @VERSION@
      5 DOMAIN = $(PACKAGE)
      6 srcidr=@srcdir@
      7 top_srcdir=@top_srcdir@
      8 VPATH= $(srcdir):.
      9 prefix = @prefix@
     10 exec_prefix = @exec_prefix@
     11 datarootdir = @datarootdir@
     12 bindir = @bindir@
     13 datadir = @datadir@
     14 libdir = @libdir@
     15 includedir = @includedir@
     16 infodir = @infodir@
     17 libexecdir = @libexecdir@
     18 localstatedir = @localstatedir@
     19 mandir = @mandir@
     20 oldincludedir = @oldincludedir@
     21 sbindir = @sbindir@
     22 sharedstatedir = @sharedstatedir@
     23 srcdir = @srcdir@
     24 sysconfdir = @sysconfdir@
     25 top_srcdir = @top_srcdir@
     26 VPATH = $(srcdir):.
     27 
     28 CGIBIN_DIR = $(libexecdir)/$(PACKAGE)/cgi-bin
     29 AUXBIN_DIR = $(libexecdir)/$(PACKAGE)
     30 HELP_DIR = @HELP_DIR@
     31 RC_DIR = @RC_DIR@
     32 ETC_DIR = $(sysconfdir)
     33 CONF_DIR = $(sysconfdir)/$(PACKAGE)
     34 DOCDIRS = @DOCDIRS@
     35 
     36 AUXBIN_TARGETS	= xface2xpm
     37 LIB_TARGETS	= dirlist.cgi w3mhelp.cgi w3mmail.cgi
     38 HELP_TARGETS	= w3mhelp-funcname.pl w3mhelp-funcdesc-stamp
     39 SUBDIRS = multipart w3mman
     40 .PHONY: $(SUBDIRS)
     41 
     42 MKDIR		= mkdir -p
     43 INSTALL		= @INSTALL@
     44 INSTALL_SCRIPT	= @INSTALL_SCRIPT@
     45 INSTALL_DATA	= @INSTALL_DATA@
     46 
     47 PERL		= @PERL@
     48 
     49 all: $(LIB_TARGETS) $(AUXBIN_TARGETS) $(HELP_TARGETS) $(SUBDIRS)
     50 
     51 w3mhelp-funcname.pl: w3mhelp-funcname.pl.in ../funcname.tab $(top_srcdir)/doc/keymap.default $(top_srcdir)/doc/keymap.lynx
     52 	@echo "generating w3mhelp-funcname.pl..."
     53 	@echo '%funcname = (' > w3mhelp-funcname.pl
     54 	@sed -ne "/^[a-zA-Z@]/s/\([a-zA-Z@][a-zA-Z0-9@_]*\)[ 	][ 	]*\([^ 	]*\)/'\1', '\2',/p" < ../funcname.tab >> w3mhelp-funcname.pl
     55 	@echo ');' >> w3mhelp-funcname.pl
     56 	@echo '%keyfunc = (' >> w3mhelp-funcname.pl
     57 	@case "$(KEYBIND_SRC)" in *lynx*) keymap=keymap.lynx;; *) keymap=keymap.default;; esac; \
     58 	sed -ne "/^keymap/s/^keymap[ 	][ 	]*\([^ 	]*\)[ 	][ 	]*\([a-zA-Z@][a-zA-Z0-9@_]*\)/'\1', '\2', /p" < $(top_srcdir)/doc/$$keymap >> w3mhelp-funcname.pl
     59 	@echo ');' >> w3mhelp-funcname.pl
     60 	@cat $(srcdir)/w3mhelp-funcname.pl.in >> w3mhelp-funcname.pl
     61 	@echo "done"
     62 
     63 w3mhelp-funcdesc-stamp: $(top_srcdir)/doc/README.func $(top_srcdir)/doc-jp/README.func w3mhelp-funcdesc.en.pl.in w3mhelp-funcdesc.ja.pl.in
     64 	@echo "generating w3mhelp-funcdesc*.pl..."
     65 	@for dirlang in $(DOCDIRS); do \
     66 	  dir=`expr "$$dirlang" : "\(.*\):.*"`; \
     67 	  lang=`expr "$$dirlang" : ".*:\(.*\)_.*"`; \
     68 	  echo '%funcdesc = (' > w3mhelp-funcdesc.$$lang.pl; \
     69 	  sed -ne "/^[a-zA-Z@]/s/\([a-zA-Z@][a-zA-Z0-9@_]*\)[ 	][ 	]*\(.*\)/'\1', '\2',/p" < $(top_srcdir)/$$dir/README.func >> w3mhelp-funcdesc.$$lang.pl; \
     70 	  echo ');' >> w3mhelp-funcdesc.$$lang.pl; \
     71 	  cat $(srcdir)/w3mhelp-funcdesc.$$lang.pl.in >> w3mhelp-funcdesc.$$lang.pl; \
     72 	done
     73 	@echo done
     74 	@touch w3mhelp-funcdesc-stamp
     75 
     76 $(SUBDIRS):
     77 	for subdir in $(SUBDIRS); \
     78 	do \
     79 		(cd $$subdir && $(MAKE)); \
     80 	done
     81 
     82 install: $(LIB_TARGETS) $(HELP_TARGETS)
     83 	-$(MKDIR) $(DESTDIR)$(AUXBIN_DIR)
     84 	-$(MKDIR) $(DESTDIR)$(CGIBIN_DIR)
     85 	-$(MKDIR) $(DESTDIR)$(HELP_DIR)
     86 	for file in $(AUXBIN_TARGETS);     \
     87 	do      \
     88 		$(INSTALL_SCRIPT) $$file $(DESTDIR)$(AUXBIN_DIR);  \
     89 	done
     90 	for file in $(LIB_TARGETS);     \
     91 	do      \
     92 		$(INSTALL_SCRIPT) $$file $(DESTDIR)$(CGIBIN_DIR);  \
     93 	done
     94 	for file in w3mhelp-*.pl; \
     95 	do \
     96 		$(INSTALL_DATA) $$file $(DESTDIR)$(HELP_DIR); \
     97 	done
     98 	for subdir in $(SUBDIRS); \
     99 	do \
    100 		(cd $$subdir && $(MAKE) install); \
    101 	done
    102 
    103 uninstall:
    104 	-for file in $(AUXBIN_TARGETS); \
    105 	do      \
    106 		rm -f $(AUXBIN_DIR)/$$file; \
    107 	done
    108 	-for file in $(LIB_TARGETS); \
    109 	do      \
    110 		rm -f $(LIB_DIR)/$$file; \
    111 	done
    112 	-for file in w3mhelp-*.pl; \
    113 	do \
    114 		rm -f $(HELP_DIR)/$$file; \
    115 	done
    116 	-for subdir in $(SUBDIRS); \
    117 	do \
    118 		(cd $$subdir && $(MAKE) uninstall); \
    119 	done
    120 
    121 clean:
    122 	-rm -f $(HELP_TARGETS) w3mhelp-*.pl
    123 	-for subdir in $(SUBDIRS); \
    124 	do \
    125 	  (cd $$subdir && $(MAKE) clean); \
    126 	done
    127 
    128 distclean:
    129 	-rm -f $(LIB_TARGETS) $(AUXBIN_TARGETS) 
    130 	-for subdir in $(SUBDIRS); \
    131 	do \
    132 	  (cd $$subdir && $(MAKE) distclean); \
    133 	done
    134 	-rm -f Makefile
    135