aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/multipart
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--scripts/multipart/.cvsignore1
-rw-r--r--scripts/multipart/Makefile50
-rw-r--r--scripts/multipart/Makefile.in68
3 files changed, 69 insertions, 50 deletions
diff --git a/scripts/multipart/.cvsignore b/scripts/multipart/.cvsignore
index 854855c..db1dff2 100644
--- a/scripts/multipart/.cvsignore
+++ b/scripts/multipart/.cvsignore
@@ -1 +1,2 @@
multipart.cgi
+Makefile
diff --git a/scripts/multipart/Makefile b/scripts/multipart/Makefile
deleted file mode 100644
index d01b9a8..0000000
--- a/scripts/multipart/Makefile
+++ /dev/null
@@ -1,50 +0,0 @@
-
-prefix = /usr/local
-BIN_DIR = $(prefix)/bin
-LIB_DIR = $(prefix)/lib/w3m/cgi-bin
-DESTDIR =
-distdir = ./distfiles
-
-LIB_TARGETS = multipart.cgi
-
-MKDIR = mkdir -p
-INSTALL = install -c
-INSTALL_SCRIPT = $(INSTALL) -m 755
-
-PERL = /usr/local/bin/perl
-NKF = nkf
-
-.SUFFIXES: .in
-
-all: $(LIB_TARGETS)
-
-.in:
- sed -e 's%@PERL@%$(PERL)%g' \
- -e 's%@NKF@%$(NKF)%g' \
- $< > $@
- chmod +x $@
-
-install: $(LIB_TARGETS)
- -$(MKDIR) $(DESTDIR)$(LIB_DIR)
- for file in $(LIB_TARGETS); \
- do \
- $(INSTALL_SCRIPT) $$file $(DESTDIR)$(LIB_DIR); \
- done
-
-uninstall:
- -for file in $(LIB_TARGETS); \
- do \
- rm -f $(LIB_DIR)/$$file; \
- done
-
-clean:
- -rm -f $(LIB_TARGETS)
-
-dist: all
- @-rm -fr $(distdir)/multipart
- $(MKDIR) $(distdir)/multipart
- cp Makefile README multipart.cgi.in $(distdir)/multipart
- ( cd $(distdir); tar -cf - multipart | GZIP='' gzip ) \
- > $(distdir)/multipart.tar.gz
- -rm -fr $(distdir)/multipart
-
diff --git a/scripts/multipart/Makefile.in b/scripts/multipart/Makefile.in
new file mode 100644
index 0000000..e153264
--- /dev/null
+++ b/scripts/multipart/Makefile.in
@@ -0,0 +1,68 @@
+@SET_MAKE@
+SHELL=@SHELL@
+srcidr=@srcdir@
+top_srcdir=@top_srcdir@
+VPATH= $(srcdir):.
+prefix = @prefix@
+exec_prefix = @exec_prefix@
+bindir = @bindir@
+datadir = @datadir@
+libdir = @libdir@
+includedir = @includedir@
+infodir = @infodir@
+libexecdir = @libexecdir@
+localstatedir = @localstatedir@
+mandir = @mandir@
+oldincludedir = @oldincludedir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+srcdir = @srcdir@
+sysconfdir = @sysconfdir@
+top_srcdir = @top_srcdir@
+VPATH = $(top_srcdir):.
+DESTDIR =
+
+CGIBIN_DIR = $(libexecdir)/$(package)/cgi-bin
+AUXBIN_DIR = $(libexecdir)/$(package)
+HELP_DIR = $(datadir)/$(package)
+RC_DIR = ~/.$(package)
+ETC_DIR = $(sysconfdir)
+CONF_DIR = $(sysconfdir)/$(package)
+
+LIB_TARGETS = multipart.cgi
+
+MKDIR = mkdir -p
+INSTALL = @INSTALL@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+
+PERL = @PERL@
+NKF = @NKF@
+
+all: $(LIB_TARGETS)
+
+install: $(LIB_TARGETS)
+ -$(MKDIR) $(DESTDIR)$(LIB_DIR)
+ for file in $(LIB_TARGETS); \
+ do \
+ $(INSTALL_SCRIPT) $$file $(DESTDIR)$(LIB_DIR); \
+ done
+
+uninstall:
+ -for file in $(LIB_TARGETS); \
+ do \
+ rm -f $(LIB_DIR)/$$file; \
+ done
+
+clean:
+
+distclean:
+ -rm -f $(LIB_TARGETS)
+
+dist: all
+ @-rm -fr $(distdir)/multipart
+ $(MKDIR) $(distdir)/multipart
+ cp Makefile README multipart.cgi.in $(distdir)/multipart
+ ( cd $(distdir); tar -cf - multipart | GZIP='' gzip ) \
+ > $(distdir)/multipart.tar.gz
+ -rm -fr $(distdir)/multipart
+