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 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86
|
################################################################################
# Copyright (c) Erik Kunze 1995 - 1999
#
# Permission to use, distribute, and sell this software and its documentation
# for any purpose is hereby granted without fee, provided that the above
# copyright notice appear in all copies and that both that copyright notice and
# this permission notice appear in supporting documentation, and that the name
# of the copyright holder not be used in advertising or publicity pertaining to
# distribution of the software without specific, written prior permission. The
# copyright holder makes no representations about the suitability of this
# software for any purpose. It is provided "as is" without express or implied
# warranty. THE CODE MAY NOT BE MODIFIED OR REUSED WITHOUT PERMISSION!
#
# THE COPYRIGHT HOLDER DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
# EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY SPECIAL, INDIRECT OR
# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
# DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
#
# Author: Erik Kunze
#
# $Id: Makefile.am,v 1.4 1999/03/20 17:42:52 erik Rel $
################################################################################
AUTOMAKE_OPTIONS = foreign
SUBDIRS = src roms doc
noinst_HEADERS = config2.h
rxzx:
configure --enable-registered=yes
$(MAKE) clean all
fxzx:
configure --enable-registered=no
$(MAKE) clean all
rdist: rcs
configure --enable-registered=yes
$(MAKE) clean dist
mv $(distdir).tar.gz $(distdir)r.tar.gz
fdist: rcs
configure --enable-registered=no
$(MAKE) clean dist
rcs:
dist-hook:
if test -d $(distdir)/src/free; then \
(cd $(distdir); \
rm -f doc/README.demo doc/*.reg; \
rm -f src/free/monitor[12].c src/free/y.tab.h; \
sed -e 's,src/registered/Makefile,,' \
-e 's,src/registered/printer/Makefile,,' < configure > xx; \
mv xx configure; \
chmod +x configure); \
else \
(cd $(distdir); \
rm -f src/README.demo; \
mv -f doc/COPYRIGHT.reg doc/COPYRIGHT; \
mv -f doc/README.reg doc/README; \
mv -f doc/xzx.man.reg doc/xzx.man; \
rm -f src/registered/profile src/registered/profile.h; \
sed -e 's,keyboard.scr,@KEYPIC_FILE@,' < doc/Xzx.ad > xx; \
mv xx doc/Xzx.ad; \
sed -e 's,src/free/Makefile,,' \
-e 's,sw_registered=no,sw_registered=yes,' < configure > xx; \
mv xx configure; \
chmod +x configure); \
fi
(cd $(distdir); ln doc/COPYRIGHT .;ln doc/INSTALL .)
find $(distdir) -name "*.[chly]" -print | \
grep -v config | \
while read f; do \
stripc 1 < $$f | sed -e 's/^[ ]*//' -e '/^$$/d' > xx; \
mv -f xx $$f; \
done
clean:
rm -f *~
# EOF ##########################################################################
|