X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Makefile.in;h=d33dc24b35758fd3776f79e874e66754d418ac15;hb=82c5080773aae5e72ec155327c075775e023d2ee;hp=266f4db116cba152237e967ed11f0da07a04a9de;hpb=c31d10b6605cd8dc1a7b61fef4256f06198767e5;p=xscreensaver diff --git a/Makefile.in b/Makefile.in index 266f4db1..d33dc24b 100644 --- a/Makefile.in +++ b/Makefile.in @@ -1,4 +1,4 @@ -# Makefile.in --- xscreensaver, Copyright (c) 1997 Jamie Zawinski. +# Makefile.in --- xscreensaver, Copyright (c) 1999 Jamie Zawinski. # the `../configure' script generates `Makefile' from this file. @SET_MAKE@ @@ -11,15 +11,13 @@ TARFILES = README README.VMS README.debugging INSTALL xscreensaver.lsm \ configure configure.in Makefile.in config.h.in \ config.h-vms install-sh setup.com config.guess \ config.sub makevms.com screenblank.txt \ - xscreensaver.lsm.sh + xscreensaver.lsm.sh xscreensaver.spec TAR = tar -COMPRESS = gzip --verbose --best -COMPRESS_EXT = gz -# COMPRESS = compress -# COMPRESS_EXT = Z MAKE_SUBDIR = for dir in $(SUBDIRS); do (cd $$dir; $(MAKE) $@) || exit 5; done +default:: + @$(MAKE_SUBDIR) all:: @$(MAKE_SUBDIR) install: @@ -39,6 +37,7 @@ uninstall-man: depend: @$(MAKE_SUBDIR) distdepend: + @$(MAKE) update_spec_version @$(MAKE_SUBDIR) TAGS: tags tags: @@ -72,10 +71,9 @@ tar: | sed \"s|^|$$subdir/|g;s| | $$subdir/|g\" \ ` "; \ cd $$d ; done ; \ - echo creating tar file $${NAME}.tar.$(COMPRESS_EXT)... ; \ - $(TAR) -vchf - \ - `echo $(TARFILES) $$FILES | sed "s|^|$$NAME/|g; s| | $$NAME/|g" ` \ - | $(COMPRESS) > $${NAME}.tar.$(COMPRESS_EXT) ; \ + echo creating tar file $${NAME}.tar.gz... ; \ + GZIP="-9v" $(TAR) -vchzf $${NAME}.tar.gz \ + `echo $(TARFILES) $$FILES | sed "s|^|$$NAME/|g; s| | $$NAME/|g" ` ; \ rm $$NAME @@ -84,7 +82,7 @@ tar: # nearly impossible to customize --help blurb. This horrid set of regexps # go through and clean up the help text, by inserting whitespace and ripping # out options we don't use. Odds are good that this will fail with any version -# of autoconf other than 2.12. +# of autoconf other than the ones I've tried (2.12 and 2.13.) # configure:: autoconf @@ -128,7 +126,7 @@ bump-version:: MAJOR="$$1"; MINOR="$$2"; \ NEW=`echo $$MINOR + 1 | bc` ; \ NEW=`echo $$NEW | sed 's/^\([0-9]\)$$/0\1/'` ; \ - D=`date '+%d-%b-%y'`; \ + D=`date '+%d-%b-%Y'`; \ if [ ! -f xscreensaver-$$MAJOR.$$MINOR.tar.gz ]; then \ echo "WARNING: xscreensaver-$$MAJOR.$$MINOR.tar.gz does not exist."; \ fi ; \ @@ -152,6 +150,44 @@ bump-version:: echo "overwrote $$SRC"; \ ls -lFd $$SRC +update_spec_version:: + @S=$(srcdir)/xscreensaver.spec ; \ + U=$(srcdir)/utils/version.h ; \ + V=`sed -n 's/.*\([0-9][0-9]*\.[0-9]*\).*/\1/p' < $$U` ; \ + echo -n "Updating version number in $$S to \"$$V\"... " ; \ + T=/tmp/xs.$$$$ ; \ + sed "s/^\(%define.version[^0-9]*\)\(.*\)/\1$$V/" \ + < $$S > $$T ; \ + if cmp -s $$S $$T ; then \ + echo "unchanged." ; \ + else \ + cat $$T > $$S ; \ + echo "done." ; \ + fi ; \ + rm $$T + +rpm:: + @ \ + VERS=`sed -n 's/[^0-9]*\([0-9]\.[0-9][0-9]*\).*/\1/p' utils/version.h` ; \ + DIR=`pwd`/rpm_build ; \ + ARCH=`rpm --showrc | sed -n 's/^build arch *: //p'` ; \ + rm -rf $$DIR ; \ + mkdir $$DIR ; \ + ( cd $$DIR; mkdir BUILD RPMS RPMS/$$ARCH SOURCES SPECS SRPMS ) ; \ + cp -p xscreensaver-$$VERS.tar.gz $$DIR/SOURCES/ ; \ + rpm -vba --define "_topdir $$DIR" \ + --define "USE_GL yes" xscreensaver.spec ; \ + echo '' ; \ + echo 'RPM build complete' ; \ + echo '' ; \ + rm -f $$DIR/xscreensaver-$$VERS.tar.gz ; \ + rm -rf $$DIR/BUILD/xscreensaver-$$VERS ; \ + mv $$DIR/SRPMS/xscreensaver*-$$VERS-*.rpm . ; \ + mv $$DIR/RPMS/$$ARCH/xscreensaver*-$$VERS-*.rpm . ; \ + rm -rf $$DIR ; \ + echo '' ; \ + ls -lFG xscreensaver*-$$VERS-*.rpm + test-tar:: @ \ VERS=`sed -n 's/[^0-9]*\([0-9]\.[0-9][0-9]*\).*/\1/p' utils/version.h` ; \ @@ -174,37 +210,27 @@ test-tar:: chmod -R a-w . ; \ chmod u+w . ; \ mkdir BIN ; \ - mkdir BIN/athena ; \ mkdir BIN/motif ; \ mkdir BIN/lesstif ; \ chmod a-w . ; \ \ - ( cd BIN/athena ; \ - CC=cc ; \ - export CC ; \ - ../../configure --with-athena ; \ - echo --------------------------------------------------------------- ; \ - gmake ; \ - echo --------------------------------------------------------------- ); \ - \ ( cd BIN/motif ; \ CC=cc ; \ export CC ; \ - ../../configure --with-motif=/usr/local/motif ; \ + ../../configure --without-xpm --without-xdbe --without-xshm \ + --with-motif=/usr/local/motif ; \ echo --------------------------------------------------------------- ; \ - ( cd utils; gmake ) ; \ - ( cd driver; gmake ) ; \ - ( cd driver; gmake xscreensaver-demo-Xaw ) ; \ + gmake all ; \ + ( cd driver; gmake tests ) ; \ echo --------------------------------------------------------------- ); \ \ ( cd BIN/lesstif ; \ CC=cc ; \ export CC ; \ - ../../configure --with-motif=/usr/local/lesstif ; \ + ../../configure --with-motif=/usr/local/lesstif --without-gnome ; \ echo --------------------------------------------------------------- ; \ - ( cd utils; gmake ) ; \ - ( cd driver; gmake ) ; \ - ( cd driver; gmake xscreensaver-demo-Xaw ) ; \ + ( cd utils; gmake all ) ; \ + ( cd driver; gmake all ) ; \ echo --------------------------------------------------------------- ); \ \ chmod -R u+w . @@ -221,6 +247,7 @@ www:: echo "$$NAME does not exist! Did you forget to \`make tar'?" ; \ exit 1 ; \ fi ; \ + chmod a-w $$NAME ; \ if [ -f $$DEST/$$NAME ]; then \ echo -n "WARNING: $$DEST/$$NAME already exists! Overwrite? "; \ read line; \