# Makefile.in --- xscreensaver, Copyright (c) 1997 Jamie Zawinski. # the `../configure' script generates `Makefile' from this file. @SET_MAKE@ srcdir = @srcdir@ VPATH = @srcdir@ SHELL = /bin/sh SUBDIRS = utils driver hacks hacks/glx 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 TAR = gtar COMPRESS = gzip --verbose --best COMPRESS_EXT = gz # COMPRESS = compress # COMPRESS_EXT = Z MAKE_SUBDIR = for dir in $(SUBDIRS) ; do ( cd $$dir ; $(MAKE) $@ ) ; done all:: @$(MAKE_SUBDIR) install: @$(MAKE_SUBDIR) install-program: @$(MAKE_SUBDIR) install-man: @$(MAKE_SUBDIR) install-strip: @$(MAKE_SUBDIR) uninstall: @$(MAKE_SUBDIR) uninstall-program: @$(MAKE_SUBDIR) uninstall-man: @$(MAKE_SUBDIR) depend: @$(MAKE_SUBDIR) distdepend: @$(MAKE_SUBDIR) TAGS: tags tags: @$(MAKE_SUBDIR) clean: @$(MAKE_SUBDIR) distclean: clean -rm -f config.h Makefile config.status config.cache config.log *~ "#"* @$(MAKE_SUBDIR) dist: tar # This really makes me sick... tar: @ \ sh config.status ; \ $(MAKE) hack_configure ; \ $(MAKE) distdepend ; \ sh xscreensaver.lsm.sh > xscreensaver.lsm.$$$$ ; \ mv xscreensaver.lsm.$$$$ xscreensaver.lsm ; \ NAME=`sed -n \ 's/[^0-9]*\([0-9]\.[0-9][0-9]*\).*/xscreensaver-\1/p' utils/version.h` ; \ rm -f $$NAME ; ln -s . $$NAME ; \ FILES= ; \ for subdir in $(SUBDIRS) ; do \ d=`pwd` ; \ cd $$subdir ; \ FILES="$$FILES `$(MAKE) echo_tarfiles \ | grep -v '^.*make\[' \ | 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) ; \ rm $$NAME # This also makes me sick... # autoconf generates a configure script that begins with a very hard to read, # 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. # hack_configure:: autoconf @TMP=configure.$$$$ ; \ echo "munging configure's --help message..." ; \ ( perl -e ' \ my $$file=""; \ while (<>) { $$file .= $$_; } \ $$_ = $$file; \ \ s/^(Configuration:)$$/\n$$1\n/m; \ s/^(Directory and file names:)$$/\n$$1\n/m; \ s/^ --sbindir=.*\n//m; \ s/^ --libexecdir.*\n//m; \ s/^ --datadir.*\n.*\n//m; \ s/^ --sysconfdir.*\n//m; \ s/^ --sharedstatedir.*\n.*\n//m; \ s/^ --localstatedir.*\n//m; \ s/^ --infodir.*\n//m; \ s/^(Host type:)$$/\n$$1\n/m; \ s/\nFeatures and packages:\n.*library files are in DIR\n/\n/s;\ s/--enable and --with options recognized://m; \ s/\n --with-x .*?(["\n])/$$1/s; \ s/\n(Installation options:\n)/$$1/s; \ s/\n(X Server Extension options:\n)/$$1/s; \ \ s/^ --oldincludedir=.*$$/ \ --x-includes=DIR X include files are in DIR\n \ --x-libraries=DIR X library files are in DIR/m; \ \ print;' \ < configure \ > $$TMP && \ cat $$TMP > configure ) ; \ rm -f $$TMP