1999-08-14 01:45:34 +02:00
|
|
|
#
|
|
|
|
# File: Makefile
|
|
|
|
# Creation: August 14, 1999 (Saturday, 01:08h)
|
|
|
|
# Author: Copyright (C) 1999 Thomas Jensen
|
|
|
|
# tsjensen@stud.informatik.uni-erlangen.de
|
1999-08-22 01:39:01 +02:00
|
|
|
# Version: $Id: Makefile,v 1.2 1999/08/14 19:01:31 tsjensen Exp tsjensen $
|
1999-08-14 01:45:34 +02:00
|
|
|
# Format: GNU make
|
|
|
|
# Web Site: http://home.pages.de/~jensen/boxes/
|
|
|
|
# Platforms: sparc/Solaris 2.6 and others
|
|
|
|
# Purpose: Makefile for boxes, the box drawing program
|
|
|
|
#
|
|
|
|
# Remarks: o This program 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 of
|
|
|
|
# the License, or (at your option) any later version.
|
|
|
|
# o This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
# o You should have received a copy of the GNU General Public
|
|
|
|
# License along with this program; if not, write to the Free
|
|
|
|
# Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
|
|
|
# MA 02111-1307 USA
|
|
|
|
#
|
|
|
|
# Revision History:
|
|
|
|
#
|
1999-08-14 21:01:31 +02:00
|
|
|
# $Log: Makefile,v $
|
1999-08-22 01:39:01 +02:00
|
|
|
# Revision 1.2 1999/08/14 19:01:31 tsjensen
|
|
|
|
# After taking a snapshot, put it in the author's archives, too.
|
|
|
|
#
|
1999-08-14 21:01:31 +02:00
|
|
|
# Revision 1.1 1999/08/13 23:45:34 tsjensen
|
|
|
|
# Initial revision
|
1999-08-14 01:45:34 +02:00
|
|
|
#____________________________________________________________________________
|
|
|
|
#============================================================================
|
|
|
|
|
|
|
|
|
1999-08-22 01:39:01 +02:00
|
|
|
GLOBALCONF = /usr/local/share/boxes
|
|
|
|
BVERSION = 1.0
|
|
|
|
|
|
|
|
SNAPFILE = boxes-SNAP-$(shell date +%Y%m%d)
|
|
|
|
WEBHOME = $(HOME)/d/public_html/software/boxes
|
|
|
|
CLOGFILE = $(WEBHOME)/changelogs.html
|
|
|
|
|
|
|
|
CL_FILES = boxes-config
|
|
|
|
RCS_FILES = $(CL_FILES) Makefile doc/boxes.1.in
|
|
|
|
ALL_FILES = COPYING README boxes-config Makefile
|
|
|
|
DOC_FILES = doc/boxes.1 doc/boxes.1.in
|
1999-08-14 01:45:34 +02:00
|
|
|
|
|
|
|
|
1999-08-22 01:39:01 +02:00
|
|
|
build debug boxes: src/boxes.h doc/boxes.1
|
1999-08-14 01:45:34 +02:00
|
|
|
$(MAKE) -C src $@
|
|
|
|
|
1999-08-22 01:39:01 +02:00
|
|
|
|
|
|
|
src/boxes.h: src/boxes.h.in src/regexp/regexp.h Makefile
|
|
|
|
sed -e 's/--BVERSION--/$(BVERSION)/; s/--GLOBALCONF--/$(subst /,\/,$(GLOBALCONF))/' src/boxes.h.in > src/boxes.h
|
|
|
|
|
|
|
|
doc/boxes.1: doc/boxes.1.in Makefile
|
|
|
|
sed -e 's/--BVERSION--/$(BVERSION)/; s/--GLOBALCONF--/$(subst /,\/,$(GLOBALCONF))/' doc/boxes.1.in > doc/boxes.1
|
|
|
|
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f doc/boxes.1
|
|
|
|
$(MAKE) -C src clean
|
|
|
|
|
|
|
|
locsnap: $(ALL_FILES) $(DOC_FILES)
|
|
|
|
mkdir -p $(SNAPFILE)/doc
|
1999-08-14 01:45:34 +02:00
|
|
|
cp $(ALL_FILES) $(SNAPFILE)
|
1999-08-22 01:39:01 +02:00
|
|
|
cp $(DOC_FILES) $(SNAPFILE)/doc
|
1999-08-14 01:45:34 +02:00
|
|
|
$(MAKE) -C src SNAPFILE=../$(SNAPFILE) snap
|
|
|
|
gtar cfvz $(SNAPFILE).tar.gz $(SNAPFILE)/*
|
|
|
|
rm -rf $(SNAPFILE)/
|
1999-08-22 01:39:01 +02:00
|
|
|
|
|
|
|
snap: locsnap
|
1999-08-14 01:45:34 +02:00
|
|
|
cp $(SNAPFILE).tar.gz $(WEBHOME)/download/
|
|
|
|
rm -f $(WEBHOME)/download/current-SNAP.tar.gz
|
|
|
|
(cd $(WEBHOME)/download; ln -s $(SNAPFILE).tar.gz current-SNAP.tar.gz)
|
1999-08-14 21:01:31 +02:00
|
|
|
mv -i $(SNAPFILE).tar.gz archive/
|
|
|
|
chmod 444 archive/$(SNAPFILE).tar.gz
|
1999-08-14 01:45:34 +02:00
|
|
|
|
|
|
|
rcstest:
|
|
|
|
-for i in $(RCS_FILES) ; do rcsdiff $$i ; done
|
|
|
|
$(MAKE) -C src rcstest
|
|
|
|
|
|
|
|
logpage: $(CL_FILES)
|
|
|
|
cd src; ../doc/create_changelog.pl $(patsubst %,../%,$(CL_FILES)) $(shell $(MAKE) -C src -s logpage) > $(CLOGFILE)
|
|
|
|
|
1999-08-22 01:39:01 +02:00
|
|
|
|
1999-08-14 01:45:34 +02:00
|
|
|
love:
|
|
|
|
@echo "Not in front of the kids, honey!"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#EOF
|