"Fossies" - the Fresh Open Source Software Archive

Member "xscreensaver-6.01/Makefile.in" (3 May 2021, 14377 Bytes) of package /linux/misc/xscreensaver-6.01.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 # Makefile.in --- xscreensaver, Copyright © 1999-2021 Jamie Zawinski.
    2 # the `../configure' script generates `Makefile' from this file.
    3 
    4 @SET_MAKE@
    5 srcdir		= @srcdir@
    6 VPATH		= @srcdir@
    7 
    8 SHELL		= /bin/sh
    9 SUBDIRS 	= utils jwxyz hacks/images hacks hacks/glx hacks/fonts \
   10 		  driver po
   11 SUBDIRS2	= $(SUBDIRS) OSX android
   12 TARFILES	= README README.hacking INSTALL \
   13 		  configure configure.ac Makefile.in config.h.in \
   14 		  install-sh config.guess aclocal.m4 \
   15 		  ax_pthread.m4 config.sub \
   16 		  intltool-merge.in intltool-extract.in intltool-update.in \
   17 		  xscreensaver.spec
   18 
   19 TAR		= gnutar
   20 TAR_ARGS	= --owner=0 --group=0 --posix --no-acls --no-xattrs --no-selinux
   21 
   22 
   23 # Using $(MAKE) directly means the shell executes things even with "make -n"
   24 MAKE2 = $(MAKE)
   25 
   26 MAKE_SUBDIR  = for dir in $(SUBDIRS);  do (cd $$dir && $(MAKE2) $@) || exit 5; done
   27 MAKE_SUBDIR2 = for dir in $(SUBDIRS2); do (cd $$dir && $(MAKE2) $@) || exit 5; done
   28 
   29 default::
   30 	@+$(MAKE_SUBDIR)
   31 all::
   32 	@+$(MAKE_SUBDIR)
   33 install::
   34 	@+$(MAKE_SUBDIR)
   35 install-program::
   36 	@+$(MAKE_SUBDIR)
   37 install-man::
   38 	@+$(MAKE_SUBDIR)
   39 install-strip::
   40 	@+$(MAKE_SUBDIR)
   41 uninstall::
   42 	@$(MAKE_SUBDIR)
   43 uninstall-program::
   44 	@$(MAKE_SUBDIR)
   45 uninstall-man::
   46 	@$(MAKE_SUBDIR)
   47 depend::
   48 	@$(MAKE_SUBDIR)
   49 distdepend::
   50 	@$(MAKE2) update_spec_version
   51 	@$(MAKE_SUBDIR2)
   52 	@cd po ; $(MAKE2) update-po
   53 
   54 TAGS:: tags
   55 tags::
   56 	@$(MAKE_SUBDIR)
   57 
   58 clean::
   59 	@$(MAKE_SUBDIR2)
   60 
   61 distclean:: clean
   62 	@$(MAKE_SUBDIR2)
   63 	-rm -f config.h Makefile config.status config.cache config.log TAGS *~ "#"* intltool-extract intltool-merge intltool-update
   64 
   65 dist:: tar
   66 
   67 # This really makes me sick...
   68 tar::
   69 	@								    \
   70   sh config.status ;							    \
   71   rm -f configure ;							    \
   72   $(MAKE2) configure ;							    \
   73   $(MAKE2) version-date distdepend ;					    \
   74   $(MAKE2) _tar
   75 
   76 list_tarfiles:
   77 	@find $(TARFILES) -type f -print | sort
   78 
   79 _tar:
   80 	@								    \
   81   VERS=`sed -n 's/[^0-9]*\([0-9]\.[0-9][^. ]*\).*/\1/p' utils/version.h |   \
   82 	head -1` ;							    \
   83   NAME="xscreensaver-$$VERS" ;						    \
   84   rm -rf $$NAME ; ln -s . $$NAME ;					    \
   85   LIST="tar$$$$.txt" ;							    \
   86   ADIR=archive/ ;							    \
   87   rm -f "$$LIST" ;							    \
   88   for subdir in . $(SUBDIRS2) ; do					    \
   89     ( cd $$subdir ;							    \
   90       $(MAKE2) list_tarfiles						    \
   91         | grep -v '^.*make\['						    \
   92         | sed -e "s@^@$$NAME/$$subdir/@g"				    \
   93         | sed -e "s@/\./@/@g"						    \
   94     ) >> "$$LIST" ;							    \
   95   done ;								    \
   96   echo creating tar file $$ADIR$$NAME.tar.gz... ;			    \
   97   export COPYFILE_DISABLE=true ;					    \
   98   export GZIP="-9v" ;							    \
   99   $(TAR) -vczf $$ADIR$$NAME.tar.gz -T "$$LIST" $(TAR_ARGS) ;		    \
  100   rm "$$LIST" "$$NAME"
  101 
  102 
  103 # This also makes me sick...
  104 # autoconf generates a configure script that begins with a very hard to read,
  105 # nearly impossible to customize --help blurb.  This horrid set of regexps
  106 # go through and clean up the help text, by inserting whitespace and ripping
  107 # out options we don't use.  Odds are good that this will fail with any version
  108 # of autoconf other than the ones I've tried (2.12 and 2.13.)
  109 #
  110 configure::
  111 	rm -f configure
  112 	aclocal
  113 	autoconf
  114 	autoheader
  115 
  116 configure::
  117 	@TMP=configure.$$$$ ;						     \
  118 	echo "munging configure's --help message..." ;			     \
  119 	( perl -e '							     \
  120 		my $$file="";						     \
  121 		while (<>) { $$file .= $$_; }				     \
  122 		$$_ = $$file;						     \
  123 									     \
  124 		s/\nInstallation directories:.*?\n\n/\n/s;		     \
  125 		s/\nOptional Features:.*?\n\n/\n/s;			     \
  126 		s/\nOptional Packages:.*?\n\n/\n/s;			     \
  127 									     \
  128 		s/^ +--sbindir=.*\n//m;					     \
  129 		s/^ +--sysconfdir.*\n//m;				     \
  130 		s/^ +--sharedstatedir.*\n.*\n//m;			     \
  131 		s/^ +--oldincludedir.*\n//m;				     \
  132 		s/^ +--infodir.*\n//m;					     \
  133 		s/^ +--htmldir.*\n//m;					     \
  134 		s/^ +--dvidir.*\n//m;					     \
  135 		s/^ +--pdfdir.*\n//m;					     \
  136 		s/^ +--psdir.*\n//m;					     \
  137 		s/^ +--with-x .*\n//m;					     \
  138 									     \
  139 		s/(\n\n)\n+/$$1/gs;					     \
  140 									     \
  141 		s/rm -f conftest/rm -rf conftest/g;			     \
  142 									     \
  143 		print;'							     \
  144 	< configure							     \
  145 	> $$TMP &&							     \
  146 	cat $$TMP > configure ) ;					     \
  147 	rm -f $$TMP
  148 
  149 # WARNING: This stands a good chance of breaking the world.
  150 # Be prepared to roll back all of /opt/local/ from Time Machine.
  151 automake-upgrade:
  152 	sudo port upgrade autoconf automake libtool autoconf-archive
  153 	cp -p /opt/local/share/automake*/{config.guess,config.sub,install-sh} .
  154 	cp -p /opt/local/share/libtool/aclocal.m4 .
  155 	cp -p /opt/local/share/aclocal/ax_pthread.m4 .
  156 	echo also consider autoupdate
  157 	$(MAKE2) configure
  158 
  159 
  160 bump-version::
  161 	@								    \
  162   SRC=utils/version.h ;							    \
  163   VERS=`sed -n								    \
  164     's/[^0-9]*\([0-9]\)\.\([0-9][0-9]*\)\([^. \"]*\).*/\1 \2 \3/p' $$SRC |  \
  165 	head -1` ;							    \
  166   set - $$VERS ;							    \
  167   MAJOR="$$1"; MINOR="$$2"; SUF="$$3";					    \
  168   VERS="$$MAJOR.$$MINOR$$SUF" ;						    \
  169   if [ -z "$$SUF" ]; then						    \
  170     MINOR=`echo $$MINOR + 1 | bc | sed 's/^\(.\)/0\1/'` ;		    \
  171   else									    \
  172     set - `echo $$SUF | sed 's/^\([^0-9]*\)/\1 /'` ;			    \
  173     AA="$$1"; BB="$$2";							    \
  174     BB=`echo $$BB + 1 | bc` ;						    \
  175     SUF="$$AA$$BB" ;							    \
  176   fi ;									    \
  177   VERS2="$$MAJOR.$$MINOR$$SUF" ;					    \
  178   ADIR=archive/ ;							    \
  179   if [ ! -f "$${ADIR}xscreensaver-$$VERS.tar.gz" ]; then		    \
  180    echo "WARNING: $${ADIR}xscreensaver-$$VERS.tar.gz does not exist.";	    \
  181   fi ;									    \
  182   if [ -f "$${ADIR}xscreensaver-$$VERS2.tar.gz" ]; then			    \
  183     echo "WARNING: $${ADIR}xscreensaver-$$VERS2.tar.gz already exists.";    \
  184   fi ;									    \
  185   /bin/echo -n "Bumping $$VERS to $$VERS2, ok? ";			    \
  186   read line;								    \
  187   if [ "x$$line" != "xyes" -a  "x$$line" != "xy" ]; then		    \
  188     exit 1 ; 								    \
  189   fi ;									    \
  190 									    \
  191   TMP=/tmp/bv.$$ ;							    \
  192   sed -e "s/\([0-9]\.[0-9][^. \"]*\)/$$VERS2/" $$SRC > $$TMP ;		    \
  193   if cmp -s $$SRC $$TMP ; then						    \
  194     echo "ERROR! UNCHANGED!" ;						    \
  195     exit 1 ;								    \
  196   fi ;									    \
  197 									    \
  198   cat $$TMP > $$SRC ;							    \
  199   rm -f $$TMP;								    \
  200 									    \
  201   VERS3=`sed -n 's/[^0-9]*\([0-9]\.[0-9][^. \"]*\).*/\1/p' < $$SRC |	    \
  202 	 tail -1`;							    \
  203   if [ x"$$VERS2" != x"$$VERS3" ]; then					    \
  204     echo "ERROR! \"$$VERS2\" vs \"$$VERS3\"!" ;				    \
  205     exit 1 ;								    \
  206   fi ;									    \
  207 									    \
  208   echo "Updated $$SRC version to \"$$VERS3\"" ;				    \
  209 									    \
  210   $(MAKE) version-date ;						    \
  211   ls -lFd $$SRC
  212 
  213 bump_version:: bump-version
  214 tick-version:: bump-version
  215 tick_version:: bump-version
  216 
  217 version-date::
  218 	@								    \
  219   SRC=utils/version.h ;							    \
  220   VERS=`sed -n 's/[^0-9]*\([0-9]\.[0-9][^. \"]*\).*/\1/p' < $$SRC |	    \
  221 	 head -1`;							    \
  222   D=`date '+%d-%b-%Y'`;							    \
  223   TIME_T=`perl -e "use Date::Parse; print str2time('$$D 12:00')"` ;	    \
  224   TMP=/tmp/bv.$$ ;							    \
  225   sed -e "s/\([0-9]\.[0-9][^. \"]*\)/$$VERS/"				    \
  226       -e "s/([0-9][^()]*)/($$D)/"					    \
  227       -e "s/\(_RELEASED  *\)[0-9][0-9]*/\1$$TIME_T/"			    \
  228     < $$SRC > $$TMP ;							    \
  229   if ! cmp -s $$SRC $$TMP ; then					    \
  230     cat $$TMP > $$SRC ;							    \
  231     echo "Updated $$SRC date to \"$$D\"" ;				    \
  232   fi ;									    \
  233   rm -f $$TMP
  234 
  235 
  236 update_spec_version::
  237 	@S=$(srcdir)/xscreensaver.spec ;				    \
  238 	U=$(srcdir)/utils/version.h ;					    \
  239 	VERS=`sed -n 's/[^0-9]*\([0-9]\.[0-9][^. ]*\).*/\1/p' < $$U |	    \
  240 	  head -1` ;							    \
  241 	/bin/echo -n "Updating $$S to \"$$VERS\"... " ;			    \
  242 	T=/tmp/xs.$$$$ ;						    \
  243 	sed "s/^\(%define.version[^0-9]*\)\(.*\)/\1$$VERS/"		    \
  244 	  < $$S > $$T ;							    \
  245 	if cmp -s $$S $$T ; then					    \
  246 	  echo "unchanged." ;						    \
  247 	else								    \
  248 	  cat $$T > $$S ;						    \
  249 	  echo "done." ;						    \
  250 	fi ;								    \
  251 	rm $$T
  252 
  253 rpm::
  254 	@								   \
  255   VERS=`sed -n 's/[^0-9]*\([0-9]\.[0-9][^. ]*\).*/\1/p' utils/version.h |  \
  256 	  head -1` ;							   \
  257   DIR=`pwd`/rpm_build ;							   \
  258   ARCH=`rpm --showrc | sed -n 's/^build arch *: //p'` ;			   \
  259   ADIR=archive/ ;							   \
  260   TGZ=xscreensaver-$$VERS.tar.gz ;					   \
  261   if [ ! -f $${ADIR}$$TGZ ]; then					   \
  262     echo "$${ADIR}$$TGZ does not exist!  Did you forget to \`make tar'?" ; \
  263     exit 1 ; 								   \
  264   fi ;									   \
  265   rm -rf /var/tmp/xscreensaver-$$VERS-root ;				   \
  266   rm -rf $$DIR ;							   \
  267   mkdir $$DIR ;								   \
  268   ( cd $$DIR; mkdir BUILD RPMS RPMS/$$ARCH SOURCES SPECS SRPMS ) ;	   \
  269   cp -p $${ADIR}$$TGZ $$DIR/SOURCES/ ;					   \
  270   rpmbuild --define "_topdir $$DIR"					   \
  271            --define "USE_GL yes"					   \
  272            -v -ba xscreensaver.spec ;					   \
  273   echo '' ;								   \
  274   echo 'RPM build complete' ;						   \
  275   echo '' ;								   \
  276   rm -f $$DIR/$$TGZ ;							   \
  277   rm -rf $$DIR/BUILD/xscreensaver-$$VERS ;				   \
  278   mv $$DIR/SRPMS/xscreensaver*-$$VERS-*.rpm . ;				   \
  279   mv $$DIR/RPMS/$$ARCH/xscreensaver*-$$VERS-*.rpm . ;			   \
  280   rm -rf $$DIR ;							   \
  281   echo '' ;								   \
  282   ls -lFG xscreensaver*-$$VERS-*.rpm
  283 
  284 dmg::
  285 	$(MAKE2) -C OSX release dmg
  286 apk::
  287 	$(MAKE2) -C android apk
  288 
  289 www::
  290 	@								    \
  291   DEST=$$HOME/www/xscreensaver ;					    \
  292   VERS=`sed -n 's/[^0-9]*\([0-9]\.[0-9][^. ]*\).*/\1/p' utils/version.h |   \
  293 	  head -1` ;							    \
  294   HEAD="xscreensaver-$$VERS" ;						    \
  295   ADIR=archive/ ;							    \
  296   BNAME="$$HEAD.tar.gz" ;						    \
  297   NAME="$$ADIR$$BNAME" ;						    \
  298   DNAME="$$DEST/$$HEAD.tar.gz" ;					    \
  299   BNAME2="$$HEAD.dmg" ;							    \
  300   NAME2="$$ADIR$$BNAME2" ;						    \
  301   DNAME2="$$DEST/$$HEAD.dmg" ;						    \
  302   BNAME3="$$HEAD.apk" ;							    \
  303   NAME3="$$ADIR$$BNAME3" ;						    \
  304   DNAME3="$$DEST/$$HEAD.apk" ;						    \
  305 									    \
  306   if ! git diff --quiet ; then						    \
  307     echo "uncommitted changes exist!" ;					    \
  308     exit 1 ;								    \
  309   fi ;									    \
  310 									    \
  311   $(MAKE2) -C OSX updates.xml ;						    \
  312 									    \
  313   if [ ! -f $$NAME ]; then						    \
  314     echo "$$NAME does not exist!  Did you forget to \`make tar'?" ;	    \
  315     exit 1 ; 								    \
  316   fi ;									    \
  317   if [ ! -f $$NAME2 ]; then						    \
  318     echo "$$NAME2 does not exist!  Did you forget to \`make dmg'?" ;	    \
  319     exit 1 ; 								    \
  320   fi ;									    \
  321   if [ ! -f $$NAME3 ]; then						    \
  322     echo "$$NAME3 does not exist!  Did you forget to \`make apk'?" ;	    \
  323     exit 1 ; 								    \
  324   fi ;									    \
  325   chmod a-w $$NAME ;							    \
  326   if [ -f $$DNAME ]; then						    \
  327     /bin/echo -n "WARNING: $$DNAME already exists!  Overwrite? ";	    \
  328     read line;								    \
  329     if [ "x$$line" != "xyes" -a "x$$line" != "xy" ]; then		    \
  330       exit 1 ; 								    \
  331     fi ;								    \
  332   fi ;									    \
  333   if [ -f $$DNAME2 ]; then						    \
  334     /bin/echo -n "WARNING: $$DNAME2 already exists!  Overwrite? ";	    \
  335     read line;								    \
  336     if [ "x$$line" != "xyes" -a "x$$line" != "xy" ]; then		    \
  337       exit 1 ; 								    \
  338     fi ;								    \
  339   fi ;									    \
  340   if [ -f $$DNAME3 ]; then						    \
  341     /bin/echo -n "WARNING: $$DNAME3 already exists!  Overwrite? ";	    \
  342     read line;								    \
  343     if [ "x$$line" != "xyes" -a "x$$line" != "xy" ]; then		    \
  344       exit 1 ; 								    \
  345     fi ;								    \
  346   fi ;									    \
  347 									    \
  348   git tag -a "v$$VERS" -m "$$VERS" ;					    \
  349   git commit -m "$$VERS" . ;						    \
  350 									    \
  351   ( cd $$DEST ;	git pull ) ;						    \
  352 									    \
  353   cp -p $$NAME $$DNAME ;						    \
  354   cp -p $$NAME2 $$DNAME2 ;						    \
  355   cp -p $$NAME3 $$DNAME3 ;						    \
  356   chmod u+w $$DNAME $$DNAME2 $$DNAME3 ;					    \
  357   cp -p OSX/updates.xml $$DEST ;					    \
  358   cd $$DEST ;								    \
  359 									    \
  360   TMP=/tmp/xd.$$$$ ;							    \
  361   sed "s/xscreensaver-5\.[0-9][0-9ab]*/$$HEAD/g" download.html > $$TMP ;    \
  362   echo '' ;								    \
  363   diff -U0 download.html $$TMP ;					    \
  364   echo '' ;								    \
  365 									    \
  366   for EXT in tar.gz dmg apk ; do					    \
  367     OLDEST=`ls xscreensaver*.$$EXT | 					    \
  368       fgrep -v 5.14 |							    \
  369       fgrep -v 5.34 |							    \
  370       head -n 1` ;							    \
  371     /bin/echo -n "Delete $$DEST/$$OLDEST? ";				    \
  372     read line;								    \
  373     if [ "x$$line" = "xyes" -o "x$$line" = "xy" ]; then			    \
  374       set -x ;								    \
  375       rm $$OLDEST ;							    \
  376       git rm $$OLDEST ;							    \
  377       set +x ;								    \
  378     fi ;								    \
  379   done ;								    \
  380   set -x ;								    \
  381   cat $$TMP > download.html ;						    \
  382   rm -f $$TMP ;								    \
  383 									    \
  384   git add $$BNAME $$BNAME2 $$BNAME3 ;					    \
  385 									    \
  386   $(MAKE2) -C ../ xscreensaver/changelog.html xscreensaver/screenshots/index.html; \
  387   git diff changelog.html ;						    \
  388   set +x ;								    \
  389 									    \
  390   /bin/echo -n "Ok? ";							    \
  391   read line;								    \
  392   if [ "x$$line" != "xyes" -a "x$$line" != "xy" ]; then			    \
  393     exit 1 ;								    \
  394   fi ;									    \
  395 									    \
  396   git tag -a "v$$VERS" -m "$$VERS" ;					    \
  397   git commit -m "$$VERS" . ;						    \
  398   git push ;								    \
  399 
  400 
  401 count::
  402 	@ \
  403   echo "Current hack count: " ;						\
  404   A=`cd hacks ;     ( make -s INSTALL=true install-man |		\
  405     grep true | grep -v helper | grep -v ljlatest | wc -l )` ;		\
  406   echo "    X11:" $$A ;							\
  407   B=`cd hacks/glx ; ( make -s INSTALL=true install-man |		\
  408     grep true | grep -v helper | grep -v ljlatest | wc -l )` ;		\
  409   echo "    GLX:" $$B ;							\
  410   C=`echo $$A + $$B | bc` ;						\
  411   echo "  Total:" $$C ;							\
  412 
  413 
  414 #cerebrum::
  415 #	rsync -vax . cerebrum:src/xscreensaver/ \
  416 
  417 cerebrum::
  418 	rsync -vax . pi@10.0.1.10:xscreensaver/ \
  419 	--omit-dir-times \
  420 	--delete-during \
  421 	--exclude .git \
  422 	--exclude OSX \
  423 	--exclude android \
  424 	--exclude archive \
  425 	--exclude build \
  426 	--exclude gen \
  427 	--exclude videos \
  428 	--exclude config.h \
  429 	--exclude XScreenSaver_ad.h \
  430 	--include xscreensaver-getimage-file \
  431 	--include xscreensaver-getimage-video \
  432 	--include xscreensaver-text \
  433 	--exclude '*~' \
  434 	--include '*.asm' \
  435 	--include '*.c' \
  436 	--include '*.gif' \
  437 	--include '*.h' \
  438 	--include '*.in' \
  439 	--include '*.jpg' \
  440 	--include '*.m' \
  441 	--include '*.m4' \
  442 	--include '*.pdb' \
  443 	--include '*.png' \
  444 	--include '*.po' \
  445 	--include '*.xml' \
  446 	--include '*.xpm' \
  447 	--include '*.man' \
  448 	--include '*.ttf' \
  449 	--include '*.otf' \
  450 	--include '*.ui' \
  451 	--include 'configure*' \
  452 	--include '*/' \
  453 	--exclude '*'
  454