sunterlib/Makefile

65 lines
1.8 KiB
Makefile
Raw Normal View History

SHELL = /bin/sh
2003-02-24 13:48:44 -05:00
.SUFFIXES:
major-version = 0
minor-version = 6
version := $(major-version).$(minor-version)
prefix = /tmp/sunterlib
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
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
targets := DETAILS COPYING pkg-def.scm
2003-01-27 17:09:05 -05:00
.PHONY: all
all : $(targets)
2003-01-27 17:09:05 -05:00
DETAILS : $(s48-authors) $(s48-blurbs) $(scsh-authors) $(scsh-blurbs) \
build/details.scm build/dirs.scm build/header.scm
build/details.scm
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
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
.PHONY : install uninstall
install : $(targets)
./install-pkg --prefix $(prefix)
2003-02-24 13:48:44 -05:00
.PHONY : dist
2004-03-11 15:58:36 -05:00
dist : $(targets)
mkdir sunterlib-$(version)
2004-03-11 16:02:18 -05:00
cp pkg-def.scm COPYING DETAILS INSTALL NEWS README README.contrib install-pkg \
2004-03-11 15:58:36 -05:00
pkg-def.scm sunterlib-$(version)/
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
tar -czf sunterlib-$(version).tar.gz sunterlib-$(version)
rm -rf sunterlib-$(version)
.PHONY : clean distclean
2003-01-27 17:09:05 -05:00
clean :
-rm -f $(targets)
distclean : clean
-rm -rf sunterlib-$(version) sunterlib-$(version).tar.gz