1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
|
# Makefile for Xconq library.
# Copyright (C) 1994, 1995, 1997 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 = /usr/games
exec_prefix = $(prefix)
bindir = $(exec_prefix)/bin
libdir = $(exec_prefix)/lib
datadir = $(prefix)/lib/xconqdir
mandir = $(prefix)/man
man6dir = $(mandir)/man6
infodir = $(prefix)/info
docdir = $(datadir)/doc
gamelibdir = $(datadir)/lib
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)
$(SHELL) config.status
|