# Makefile for Xconq library. # Copyright (C) 1994, 1995, 1997, 1999, 2000 Stanley T. Shebs. # Xconq is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. prefix = @prefix@ exec_prefix = $(prefix) bindir = $(exec_prefix)/bin libdir = $(exec_prefix)/lib datadir = $(prefix)/share/xconq mandir = $(prefix)/man man6dir = $(mandir)/man6 infodir = $(prefix)/info docdir = $(datadir)/doc gamelibdir = $(datadir)/lib srcdir = @srcdir@ VPATH = @srcdir@ GAMEUID = games GAMEGRP = bin DIRPERM = 0755 FILEPERM = 0644 SHELL = /bin/sh INSTALL = install -c INSTALL_PROGRAM = $(INSTALL) INSTALL_DATA = $(INSTALL) # Host and target-dependent makefile fragments come in here. #### # End of host and target-dependent makefile fragments. all: imf.dir: $(srcdir)/makedir.sh $srcdir/*.imf | sed -e s,$(srcdir)/,, >>imf.tmp $(srcdir)/../move-if-change imf.tmp imf.dir install: all install-only # Build a copy of the library directory at the install place. install-only: for i in `ls $(srcdir)/*.dir $(srcdir)/*.g $(srcdir)/*.imf $(srcdir)/news.txt`; do \ echo $$i; \ $(INSTALL_DATA) $(srcdir)/$$i $(gamelibdir); \ done chown $(GAMEUID) $(gamelibdir) $(gamelibdir)/* chgrp $(GAMEGRP) $(gamelibdir) $(gamelibdir)/* chmod $(DIRPERM) $(gamelibdir) chmod $(FILEPERM) $(gamelibdir)/* clean: distclean: clean rm -f Makefile config.status extraclean: distclean rm -f *~* .*~* realclean: distclean Makefile: Makefile.in $(host_makefile_frag) $(target_makefile_frag) cd .. \ && CONFIG_FILES=lib/$@ CONFIG_HEADERS= $(SHELL) ./config.status