mirror of
https://github.com/ascii-boxes/boxes.git
synced 2025-02-12 07:40:16 +01:00
Added GLOBALCONF and BVERSION macros whose values are put into boxes.h and
boxes.1 Added locsnap target for generation of archives without posting to the Web page Added README file Added rules to generate boxes.h and boxes.1 from boxes.1.in and boxes.h.in
This commit is contained in:
parent
21ad76c0af
commit
ee53c330b8
45
Makefile
45
Makefile
@ -3,7 +3,7 @@
|
||||
# Creation: August 14, 1999 (Saturday, 01:08h)
|
||||
# Author: Copyright (C) 1999 Thomas Jensen
|
||||
# tsjensen@stud.informatik.uni-erlangen.de
|
||||
# Version: $Id: Makefile,v 1.1 1999/08/13 23:45:34 tsjensen Exp tsjensen $
|
||||
# Version: $Id: Makefile,v 1.2 1999/08/14 19:01:31 tsjensen Exp tsjensen $
|
||||
# Format: GNU make
|
||||
# Web Site: http://home.pages.de/~jensen/boxes/
|
||||
# Platforms: sparc/Solaris 2.6 and others
|
||||
@ -25,30 +25,52 @@
|
||||
# Revision History:
|
||||
#
|
||||
# $Log: Makefile,v $
|
||||
# Revision 1.2 1999/08/14 19:01:31 tsjensen
|
||||
# After taking a snapshot, put it in the author's archives, too.
|
||||
#
|
||||
# Revision 1.1 1999/08/13 23:45:34 tsjensen
|
||||
# Initial revision
|
||||
#____________________________________________________________________________
|
||||
#============================================================================
|
||||
|
||||
|
||||
SNAPFILE = boxes-SNAP-$(shell date +%Y%m%d)
|
||||
WEBHOME = $(HOME)/d/public_html/software/boxes
|
||||
CLOGFILE = $(WEBHOME)/changelogs.html
|
||||
GLOBALCONF = /usr/local/share/boxes
|
||||
BVERSION = 1.0
|
||||
|
||||
OTH_FILES = COPYING doc/boxes.1
|
||||
CL_FILES = boxes-config
|
||||
RCS_FILES = $(CL_FILES) Makefile
|
||||
ALL_FILES = $(RCS_FILES) $(OTH_FILES)
|
||||
SNAPFILE = boxes-SNAP-$(shell date +%Y%m%d)
|
||||
WEBHOME = $(HOME)/d/public_html/software/boxes
|
||||
CLOGFILE = $(WEBHOME)/changelogs.html
|
||||
|
||||
build debug boxes clean:
|
||||
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
|
||||
|
||||
|
||||
build debug boxes: src/boxes.h doc/boxes.1
|
||||
$(MAKE) -C src $@
|
||||
|
||||
snap: $(ALL_FILES)
|
||||
mkdir $(SNAPFILE)
|
||||
|
||||
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
|
||||
cp $(ALL_FILES) $(SNAPFILE)
|
||||
cp $(DOC_FILES) $(SNAPFILE)/doc
|
||||
$(MAKE) -C src SNAPFILE=../$(SNAPFILE) snap
|
||||
gtar cfvz $(SNAPFILE).tar.gz $(SNAPFILE)/*
|
||||
rm -rf $(SNAPFILE)/
|
||||
|
||||
snap: locsnap
|
||||
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)
|
||||
@ -62,6 +84,7 @@ rcstest:
|
||||
logpage: $(CL_FILES)
|
||||
cd src; ../doc/create_changelog.pl $(patsubst %,../%,$(CL_FILES)) $(shell $(MAKE) -C src -s logpage) > $(CLOGFILE)
|
||||
|
||||
|
||||
love:
|
||||
@echo "Not in front of the kids, honey!"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user