From http://www.jwz.org/xscreensaver/xscreensaver-5.24.tar.gz
[xscreensaver] / Makefile.in
index 99b6f4a257bb5abef0f2deb39794dd6ab717bc7c..aa233b8a504991dcbdd4d49d4b55a21647b3df2a 100644 (file)
@@ -1,4 +1,4 @@
-# Makefile.in --- xscreensaver, Copyright (c) 1999-2005 Jamie Zawinski.
+# Makefile.in --- xscreensaver, Copyright (c) 1999-2010 Jamie Zawinski.
 # the `../configure' script generates `Makefile' from this file.
 
 @SET_MAKE@
@@ -6,7 +6,8 @@ srcdir          = @srcdir@
 VPATH          = @srcdir@
 
 SHELL          = /bin/sh
-SUBDIRS                = utils driver hacks hacks/glx po
+SUBDIRS        = utils driver hacks hacks/glx po
+#SUBDIRS       = utils driver hacks hacks/glx
 SUBDIRS2       = $(SUBDIRS) OSX
 TARFILES       = README README.hacking README.VMS INSTALL \
                  configure configure.in Makefile.in config.h.in \
@@ -18,8 +19,8 @@ TARFILES      = README README.hacking README.VMS INSTALL \
 
 TAR            = tar
 
-MAKE_SUBDIR  = for dir in $(SUBDIRS); do (cd $$dir; $(MAKE) $@) || exit 5; done
-MAKE_SUBDIR2 = for dir in $(SUBDIRS2);do (cd $$dir; $(MAKE) $@) || exit 5; done
+MAKE_SUBDIR  = for dir in $(SUBDIRS); do $(MAKE) -C $$dir $@ || exit 5; done
+MAKE_SUBDIR2 = for dir in $(SUBDIRS2); do $(MAKE) -C $$dir $@ || exit 5; done
 
 default::
        @$(MAKE_SUBDIR)
@@ -44,7 +45,7 @@ depend::
 distdepend::
        @$(MAKE) update_spec_version
        @$(MAKE_SUBDIR2)
-       @cd po ; $(MAKE) generate_potfiles_in
+       @$(MAKE) -C po update-po
 
 TAGS:: tags
 tags::
@@ -80,7 +81,8 @@ tar::
       ` ";                                                                 \
     cd $$d ; done ;                                                        \
   echo creating tar file $$ADIR$$NAME.tar.gz... ;                          \
-  GZIP="-9v" $(TAR) -vchzf $$ADIR$$NAME.tar.gz                             \
+  export COPYFILE_DISABLE=true ;                                           \
+  GZIP="-9v" $(TAR) -vczf $$ADIR$$NAME.tar.gz                              \
     `echo $(TARFILES) $$FILES | sed "s|^|$$NAME/|g; s| | $$NAME/|g" ` ;            \
   rm $$NAME
 
@@ -277,7 +279,7 @@ test-tar::
   chmod -R u+w .
 
 dmg::
-       cd OSX ; $(MAKE) release dmg
+       $(MAKE) -C OSX release dmg
 
 www::
        @                                                                   \
@@ -321,27 +323,30 @@ www::
   cd $$DEST ;                                                              \
                                                                            \
   TMP=/tmp/xd.$$$$ ;                                                       \
-  sed "s/xscreensaver-5\.[0-9][0-9ab]*/$$HEAD/g" download.html > $$TMP ;  \
+  sed "s/xscreensaver-5\.[0-9][0-9ab]*/$$HEAD/g" download.html > $$TMP ;    \
   echo '' ;                                                                \
   diff -U0 download.html $$TMP ;                                           \
   echo '' ;                                                                \
                                                                            \
-  OLDEST=`ls xscreensaver*.tar.gz | head -1` ;                             \
-  /bin/echo -n "Delete $$DEST/$$OLDEST? ";                                 \
-  read line;                                                               \
-  if [ "x$$line" = "xyes" -o "x$$line" = "xy" ]; then                      \
-    set -x ;                                                               \
-    rm $$OLDEST ;                                                          \
-    cvs remove $$OLDEST ;                                                  \
-  else                                                                     \
-    set -x ;                                                               \
-  fi ;                                                                     \
+  for EXT in tar.gz dmg ; do                                               \
+    OLDEST=`ls xscreensaver*.$$EXT |                                       \
+      fgrep -v 5.14 |                                                      \
+      head -n 1` ;                                                         \
+    /bin/echo -n "Delete $$DEST/$$OLDEST? ";                               \
+    read line;                                                             \
+    if [ "x$$line" = "xyes" -o "x$$line" = "xy" ]; then                            \
+      set -x ;                                                             \
+      rm $$OLDEST ;                                                        \
+      cvs remove $$OLDEST ;                                                \
+      set +x ;                                                             \
+    fi ;                                                                   \
+  done ;                                                                   \
+  set -x ;                                                                 \
   cvs add -kb $$BNAME $$BNAME2 ;                                           \
   cat $$TMP > download.html ;                                              \
   rm -f $$TMP ;                                                                    \
                                                                            \
-  (cd ..; $(MAKE) xscreensaver/changelog.html                              \
-                 xscreensaver/screenshots/index.html );                    \
+  $(MAKE) -C ../ xscreensaver/changelog.html xscreensaver/screenshots/index.html; \
   cvs diff -U0 changelog.html ;                                                    \
   set +x ;                                                                 \
                                                                            \
@@ -353,22 +358,6 @@ www::
                                                                            \
   cvs commit -m "$$VERS"
 
-check_years::
-       @for file in `find . -name '*.*' \
-               \! -name '*~' \! -name '*.o' \! -name '*.gz' \! -name '*.Z' \
-               \! -name '*.po' \! -name 'config.*'  \! -name '*.glade*' \
-               \! -name '*.m4' \! -name '*.pdb' \! -name '*.xpm' \
-               \! -name '*.jpg' \! -name '*.gif' \! -name '*.eps' \
-               \! -name '*.png' \! -name '*.tif' \! -name '*.bak' \
-               | sort` \
-       ; do \
-         y=`date -r "$$file" '+%Y'` ; \
-         if ! ( grep "\b$$y\b" $$file >/dev/null ); then \
-           if ( grep "opyright\|(c)\|\.BR" $$file >/dev/null ); then \
-             echo "$$file              does not mention $$y" ; \
-           fi ; \
-         fi ; \
-       done
 
 count::
        @ \