Added dist and distclean targets. Added build/header.scm deps.
This commit is contained in:
parent
d77a58be8d
commit
dce4ffcd6f
29
Makefile
29
Makefile
|
@ -1,3 +1,8 @@
|
|||
SHELL = /bin/sh
|
||||
.SUFFIXES:
|
||||
|
||||
version := 0.1
|
||||
|
||||
s48-interfaces := $(shell find s48 \
|
||||
-maxdepth 2 -mindepth 2 \
|
||||
-name interfaces.scm)
|
||||
|
@ -20,18 +25,32 @@ all : s48 scsh
|
|||
s48 : $(s48-targets)
|
||||
scsh : $(scsh-targets)
|
||||
|
||||
s48-interfaces.scm : $(s48-interfaces)
|
||||
s48-interfaces.scm : $(s48-interfaces) build/header.scm
|
||||
cat build/header.scm $(s48-interfaces) > s48-interfaces.scm
|
||||
|
||||
s48-packages.scm : $(s48-packages)
|
||||
s48-packages.scm : $(s48-packages) build/header.scm
|
||||
build/xpackages.scm s48-packages.scm build/header.scm $(s48-packages)
|
||||
|
||||
interfaces.scm : $(s48-interfaces) $(scsh-interfaces)
|
||||
interfaces.scm : $(s48-interfaces) $(scsh-interfaces) build/header.scm
|
||||
cat build/header.scm $(s48-interfaces) $(scsh-interfaces) > interfaces.scm
|
||||
|
||||
packages.scm : $(s48-packages) $(scsh-packages)
|
||||
packages.scm : $(s48-packages) $(scsh-packages) build/header.scm
|
||||
build/xpackages.scm packages.scm build/header.scm $(s48-packages) $(scsh-packages)
|
||||
|
||||
.PHONY : clean
|
||||
.PHONY : dist
|
||||
dist :
|
||||
mkdir sunterlib-$(version)
|
||||
cp COPYING Makefile NEWS README sunterlib-$(version)/
|
||||
cp -r build sunterlib-$(version)/build
|
||||
cp -r s48 sunterlib-$(version)/s48
|
||||
cp -r scsh sunterlib-$(version)/scsh
|
||||
find sunterlib-0.1/ -name CVS | xargs rm -rf
|
||||
tar -czf sunterlib-$(version).tar.gz sunterlib-$(version)
|
||||
rm -rf sunterlib-$(version)
|
||||
|
||||
.PHONY : clean distclean
|
||||
clean :
|
||||
-rm -f $(targets)
|
||||
|
||||
distclean : clean
|
||||
-rm -rf sunterlib-$(version) sunterlib-$(version).tar.gz
|
||||
|
|
Loading…
Reference in New Issue