X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=Makefile.in;h=f1a39486bbb1852b74b0a1e01b1fb0cbd996d014;hp=b2e77f14880d98f91f00e389f12ec787c166fa22;hb=06e9a7886a77cad92f9ddbc169d6d199a4d8b76d;hpb=8e0f39b4a12b9a908af2b3b175ebe87c14b4a6ab diff --git a/Makefile.in b/Makefile.in index b2e77f14..f1a39486 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@ @@ -20,6 +20,8 @@ COMPRESS_EXT = gz MAKE_SUBDIR = for dir in $(SUBDIRS); do (cd $$dir; $(MAKE) $@) || exit 5; done +default:: + @$(MAKE_SUBDIR) all:: @$(MAKE_SUBDIR) install: @@ -85,7 +87,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 @@ -159,7 +161,7 @@ update_spec_version:: 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/^\(Version:[^0-9]*\)\(.*\)/\1$$V/" \ + sed "s/^\(%define.version[^0-9]*\)\(.*\)/\1$$V/" \ < $$S > $$T ; \ if cmp -s $$S $$T ; then \ echo "unchanged." ; \ @@ -169,6 +171,19 @@ update_spec_version:: fi ; \ rm $$T +rpm:: + @ \ + VERS=`sed -n 's/[^0-9]*\([0-9]\.[0-9][0-9]*\).*/\1/p' utils/version.h` ; \ + DIR=/usr/src/redhat ; \ + cp -p xscreensaver-$$VERS.tar.gz $$DIR/SOURCES/ ; \ + rpm --define "USE_GL yes" -ba xscreensaver.spec ; \ + rm -f $$DIR/xscreensaver-$$VERS.tar.gz ; \ + rm -rf $$DIR/BUILD/xscreensaver-$$VERS ; \ + mv $$DIR/SRPMS/xscreensaver*-$$VERS-*.rpm . ; \ + mv $$DIR/RPMS/i386/xscreensaver*-$$VERS-*.rpm . ; \ + 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` ; \ @@ -191,27 +206,18 @@ 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 ; \ @@ -219,9 +225,8 @@ test-tar:: export CC ; \ ../../configure --with-motif=/usr/local/lesstif ; \ 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 . @@ -238,6 +243,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; \