ftp://ftp.uni-heidelberg.de/pub/X11/contrib/applications/xscreensaver-2.07.tar.gz
[xscreensaver] / Makefile.in
1 # Makefile.in --- xscreensaver, Copyright (c) 1997 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 driver hacks hacks/glx
10 TARFILES        = README README.VMS INSTALL configure configure.in \
11                   Makefile.in config.h.in config.h-vms install-sh \
12                   setup.com config.guess config.sub makevms.com \
13                   screenblank.txt cde.txt
14 TAR             = gtar
15 COMPRESS        = gzip --verbose --best
16 COMPRESS_EXT    = gz
17 # COMPRESS      = compress
18 # COMPRESS_EXT  = Z
19
20 MAKE_SUBDIR     = for dir in $(SUBDIRS) ; do ( cd $$dir ; $(MAKE) $@ ) ; done
21
22 all::
23         @$(MAKE_SUBDIR)
24 install:
25         @$(MAKE_SUBDIR)
26 install-program:
27         @$(MAKE_SUBDIR)
28 install-man:
29         @$(MAKE_SUBDIR)
30 install-strip:
31         @$(MAKE_SUBDIR)
32 uninstall:
33         @$(MAKE_SUBDIR)
34 uninstall-program:
35         @$(MAKE_SUBDIR)
36 uninstall-man:
37         @$(MAKE_SUBDIR)
38 depend:
39         @$(MAKE_SUBDIR)
40 distdepend:
41         @$(MAKE_SUBDIR)
42 TAGS: tags
43 tags:
44         @$(MAKE_SUBDIR)
45 clean:
46         @$(MAKE_SUBDIR)
47 distclean: clean
48         -rm -f Makefile config.status config.cache config.log *~ "#"*
49         @$(MAKE_SUBDIR)
50
51 dist: tar
52
53 # This really makes me sick...
54 tar:
55         @$(MAKE) distdepend ;                                               \
56   sh config.status ;                                                        \
57   NAME=`sed -n                                                              \
58   's/[^0-9]*\([0-9]\.[0-9][0-9]*\).*/xscreensaver-\1/p' utils/version.h` ;  \
59   rm -f $$NAME ; ln -s . $$NAME ;                                           \
60   FILES= ;                                                                  \
61   for subdir in $(SUBDIRS) ; do                                             \
62     d=`pwd` ;                                                               \
63     cd $$subdir ;                                                           \
64     FILES="$$FILES `$(MAKE) echo_tarfiles                                   \
65       | grep -v '^.*make\['                                                 \
66       | sed \"s|^|$$subdir/|g;s| | $$subdir/|g\"                            \
67       ` ";                                                                  \
68     cd $$d ; done ;                                                         \
69   echo creating tar file $${NAME}.tar.$(COMPRESS_EXT)... ;                  \
70   $(TAR) -vchf -                                                            \
71     `echo $(TARFILES) $$FILES | sed "s|^|$$NAME/|g; s| | $$NAME/|g" `       \
72    | $(COMPRESS) > $${NAME}.tar.$(COMPRESS_EXT) ;                           \
73   rm $$NAME