From cde7c739dc5a1ace105fbb6cb1e158d7622cc1a9 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sun, 18 May 1997 04:34:19 +0000 Subject: Automatic LSM generation. svn path=/trunk/; revision=1023 --- Makefile.in | 12 ++++++++---- 1 file 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 -- cgit v1.2.3