aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-05-18 04:34:19 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-05-18 04:34:19 +0000
commitcde7c739dc5a1ace105fbb6cb1e158d7622cc1a9 (patch)
tree4297b6ddd7edaf498ee0a835d7897c6c3aa61e7a
parentaf21f6cfa3995c73af8606714da1a075a5d6cb65 (diff)
downloadfetchmail-cde7c739dc5a1ace105fbb6cb1e158d7622cc1a9.tar.gz
fetchmail-cde7c739dc5a1ace105fbb6cb1e158d7622cc1a9.tar.bz2
fetchmail-cde7c739dc5a1ace105fbb6cb1e158d7622cc1a9.zip
Automatic LSM generation.
svn path=/trunk/; revision=1023
-rw-r--r--Makefile.in12
1 files changed, 8 insertions, 4 deletions
diff --git a/Makefile.in b/Makefile.in
index 4d14389d..c7b472a8 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -207,7 +207,8 @@ docs = $(srcdir)/COPYING $(srcdir)/README $(srcdir)/INSTALL $(srcdir)/NEWS \
config = $(srcdir)/Makefile.in $(srcdir)/configure.in $(srcdir)/configure \
$(srcdir)/config.guess $(srcdir)/config.h.in $(srcdir)/config.sub \
$(srcdir)/acconfig.h
-scripts = $(srcdir)/install.sh $(srcdir)/mkinstalldirs $(srcdir)/specgen.sh
+scripts = $(srcdir)/install.sh $(srcdir)/mkinstalldirs \
+ $(srcdir)/specgen.sh $(srcdir)/lsmgen.sh
all = $(docs) $(config) $(srcs) $(parser) $(headers) $(extra) $(scripts) \
$(srcdir)/contrib/* $(srcdir)/MANIFEST
@@ -217,8 +218,11 @@ MANIFEST: $(srcdir) Makefile.in
FAQ: fetchmail.FAQ.html
lynx -dump -nolist fetchmail.FAQ.html >FAQ
-dist: fetchmail-$(VERS).tar.gz
- ls -l fetchmail-$(VERS).tar.gz
+# Make distribution, update LSM with proper size, remake distribution
+dist: Makefile.in
+ make fetchmail-$(VERS).tar.gz
+ lsmgen.sh $(VERS) `wc -c fetchmail-$(VERS).tar.gz` >fetchmail.lsm
+ make fetchmail-$(VERS).tar.gz
fetchmail-$(VERS).tar: $(all)
(cd ..; tar -cf fetchmail-$(VERS).tar `cat fetchmail-$(VERS)/MANIFEST`)
@@ -230,7 +234,7 @@ fetchmail-$(VERS).tar.gz: fetchmail-$(VERS).tar
RPMROOT=/usr/src/redhat
RPM = rpm
RPMFLAGS = -ba
-rpm: fetchmail-$(VERS).tar.gz
+rpm: dist
cp fetchmail-$(VERS).tar.gz $(RPMROOT)/SOURCES;
$(srcdir)/specgen.sh $(VERS) >$(RPMROOT)/SPECS/fetchmail.spec
cd $(RPMROOT)/SPECS; $(RPM) $(RPMFLAGS) fetchmail.spec