2003-02-21 01:04:39 -05:00
|
|
|
SHELL = /bin/sh
|
2003-02-24 13:48:44 -05:00
|
|
|
|
2003-02-21 01:04:39 -05:00
|
|
|
.SUFFIXES:
|
|
|
|
|
2004-03-11 15:53:48 -05:00
|
|
|
major-version = 0
|
2004-06-03 22:14:06 -04:00
|
|
|
minor-version = 8
|
2004-03-11 15:53:48 -05:00
|
|
|
version := $(major-version).$(minor-version)
|
|
|
|
|
|
|
|
prefix = /tmp/sunterlib
|
2005-07-07 22:12:13 -04:00
|
|
|
dest-dir = /tmp/stage
|
2003-02-21 01:04:39 -05:00
|
|
|
|
2003-03-11 01:13:58 -05:00
|
|
|
s48-authors := $(shell find s48 \
|
|
|
|
-maxdepth 2 -mindepth 2 \
|
|
|
|
-name AUTHORS)
|
|
|
|
s48-blurbs := $(shell find s48 \
|
|
|
|
-maxdepth 2 -mindepth 2 \
|
|
|
|
-name BLURB)
|
2003-02-24 13:48:44 -05:00
|
|
|
|
2003-03-11 01:13:58 -05:00
|
|
|
scsh-authors := $(shell find scsh \
|
|
|
|
-maxdepth 2 -mindepth 2 \
|
|
|
|
-name AUTHORS)
|
|
|
|
scsh-blurbs := $(shell find scsh \
|
|
|
|
-maxdepth 2 -mindepth 2 \
|
|
|
|
-name BLURB)
|
2003-01-27 17:09:05 -05:00
|
|
|
|
2005-07-07 21:20:14 -04:00
|
|
|
.PHONY: version-check
|
|
|
|
version-check :
|
|
|
|
build/version-check.scm
|
|
|
|
|
|
|
|
targets := DETAILS COPYING pkg-def.scm version-check
|
2003-01-27 17:09:05 -05:00
|
|
|
|
2004-03-11 15:53:48 -05:00
|
|
|
.PHONY: all
|
2005-07-07 21:20:14 -04:00
|
|
|
all : $(targets) check-versions
|
2003-01-27 17:09:05 -05:00
|
|
|
|
2004-03-11 15:53:48 -05:00
|
|
|
DETAILS : $(s48-authors) $(s48-blurbs) $(scsh-authors) $(scsh-blurbs) \
|
|
|
|
build/details.scm build/dirs.scm build/header.scm
|
2003-03-11 01:13:58 -05:00
|
|
|
build/details.scm
|
|
|
|
|
2004-03-11 15:53:48 -05:00
|
|
|
COPYING : $(s48-authors) $(scsh-authors) \
|
|
|
|
build/copying.scm build/common.scm build/header.scm build/dirs.scm
|
|
|
|
build/copying.scm
|
2003-02-24 13:48:44 -05:00
|
|
|
|
2004-03-11 15:53:48 -05:00
|
|
|
pkg-def.scm : $(s48-authors) $(scsh-authors) \
|
|
|
|
build/make-pkg-def.scm build/common.scm build/header.scm \
|
|
|
|
build/dirs.scm
|
|
|
|
build/make-pkg-def.scm $(major-version) $(minor-version)
|
2003-02-24 13:48:44 -05:00
|
|
|
|
2005-07-07 22:12:13 -04:00
|
|
|
.PHONY : install uninstall build-phase install-phase
|
2004-03-11 15:53:48 -05:00
|
|
|
install : $(targets)
|
2005-07-07 22:12:13 -04:00
|
|
|
scsh-install-pkg --prefix $(prefix) --dest-dir $(dest-dir)
|
|
|
|
|
|
|
|
build-phase: $(targets)
|
|
|
|
scsh-install-pkg --prefix $(prefix) --dest-dir $(dest-dir) --phases build
|
|
|
|
|
|
|
|
install-phase: $(targets)
|
|
|
|
scsh-install-pkg --prefix $(prefix) --dest-dir $(dest-dir) --phases install
|
2003-02-24 13:48:44 -05:00
|
|
|
|
2003-02-21 01:04:39 -05:00
|
|
|
.PHONY : dist
|
2004-03-11 15:58:36 -05:00
|
|
|
dist : $(targets)
|
2003-02-21 01:04:39 -05:00
|
|
|
mkdir sunterlib-$(version)
|
2004-04-15 11:42:11 -04:00
|
|
|
cp pkg-def.scm COPYING DETAILS INSTALL NEWS README README.contrib \
|
2005-07-07 21:29:00 -04:00
|
|
|
sunterlib-$(version)/
|
2003-02-21 01:04:39 -05:00
|
|
|
cp -r s48 sunterlib-$(version)/s48
|
|
|
|
cp -r scsh sunterlib-$(version)/scsh
|
2003-02-25 01:46:51 -05:00
|
|
|
find sunterlib-$(version)/ -name CVS | xargs rm -rf
|
|
|
|
find sunterlib-$(version)/ -name "*~" | xargs rm -f
|
2003-02-21 01:04:39 -05:00
|
|
|
tar -czf sunterlib-$(version).tar.gz sunterlib-$(version)
|
|
|
|
rm -rf sunterlib-$(version)
|
2004-04-15 11:42:11 -04:00
|
|
|
gpg -b sunterlib-$(version).tar.gz
|
2003-02-21 01:04:39 -05:00
|
|
|
|
|
|
|
.PHONY : clean distclean
|
2003-01-27 17:09:05 -05:00
|
|
|
clean :
|
|
|
|
-rm -f $(targets)
|
2003-02-21 01:04:39 -05:00
|
|
|
|
|
|
|
distclean : clean
|
2004-04-15 11:43:49 -04:00
|
|
|
-rm -rf sunterlib-$(version) sunterlib-$(version).tar.gz sunterlib-$(version).tar.gz.sig
|