2 * Imakefile file for xscreensaver, Copyright (c) 1991-1994 Jamie Zawinski.
4 * You should not need to edit this file; edit config.h instead.
10 TARFILES = README Imakefile config.h screenblank.txt
14 /**/# COMPRESS = gzip --verbose --best
15 /**/# COMPRESS_EXT = gz
17 all:: utils/Makefile driver/Makefile hacks/Makefile
18 cd utils ; $(MAKE) $@ CC="$(CC)" CCOPTIONS="$(CCOPTIONS)" CDEBUGFLAGS="$(CDEBUGFLAGS)"
19 cd driver ; $(MAKE) $@ CC="$(CC)" CCOPTIONS="$(CCOPTIONS)" CDEBUGFLAGS="$(CDEBUGFLAGS)"
20 cd hacks ; $(MAKE) $@ CC="$(CC)" CCOPTIONS="$(CCOPTIONS)" CDEBUGFLAGS="$(CDEBUGFLAGS)"
22 clean install install.man:: utils/Makefile driver/Makefile hacks/Makefile
23 cd utils ; $(MAKE) $@ BINDIR=$(BINDIR) XAPPLOADDIR=$(XAPPLOADDIR)
24 cd driver ; $(MAKE) $@ BINDIR=$(BINDIR) XAPPLOADDIR=$(XAPPLOADDIR)
25 cd hacks ; $(MAKE) $@ BINDIR=$(BINDIR) XAPPLOADDIR=$(XAPPLOADDIR)
27 Makefiles:: utils/Makefile driver/Makefile hacks/Makefile
29 utils/Makefile: utils/Imakefile config.h
30 cd utils ; $(IMAKE_CMD) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR)/utils
31 driver/Makefile: driver/Imakefile config.h
32 cd driver ; $(IMAKE_CMD) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR)/driver
33 hacks/Makefile: hacks/Imakefile config.h
34 cd hacks ; $(IMAKE_CMD) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR)/hacks
36 /* This really makes me sick... */
37 tar: utils/Makefile driver/Makefile hacks/Makefile
39 's/[^0-9]*\([0-9]\.[0-9][0-9]*\).*/xscreensaver-\1/p' utils/version.h` ; \
40 rm -f $$NAME ; ln -s . $$NAME ; \
42 for subdir in driver utils hacks ; do \
44 FILES="$$FILES `make echo_tarfiles \
46 | sed \"s|^|$$subdir/|g;s| | $$subdir/|g\" \
49 echo creating tar file $${NAME}.tar.$(COMPRESS_EXT)... ; \
51 `echo $(TARFILES) $$FILES | sed "s|^|$$NAME/|g; s| | $$NAME/|g" ` \
52 | $(COMPRESS) > $${NAME}.tar.$(COMPRESS_EXT) ; \