2003-01-28 22:44:23 -05:00
|
|
|
s48-interfaces := $(shell find s48 \
|
|
|
|
-maxdepth 2 -mindepth 2 \
|
|
|
|
-name interfaces.scm)
|
|
|
|
s48-packages := $(shell find s48 \
|
|
|
|
-maxdepth 2 -mindepth 2 \
|
|
|
|
-name packages.scm)
|
|
|
|
scsh-interfaces := $(shell find scsh \
|
|
|
|
-maxdepth 2 -mindepth 2 \
|
|
|
|
-name interfaces.scm)
|
|
|
|
scsh-packages := $(shell find scsh \
|
|
|
|
-maxdepth 2 -mindepth 2 \
|
|
|
|
-name packages.scm)
|
2003-01-27 17:09:05 -05:00
|
|
|
|
2003-01-28 22:44:23 -05:00
|
|
|
s48-targets := s48-interfaces.scm s48-packages.scm
|
|
|
|
scsh-targets := interfaces.scm packages.scm
|
|
|
|
targets := $(s48-targets) $(scsh-targets)
|
2003-01-27 17:09:05 -05:00
|
|
|
|
2003-01-28 22:44:23 -05:00
|
|
|
.PHONY: all s48 scsh
|
|
|
|
all : s48 scsh
|
|
|
|
s48 : $(s48-targets)
|
|
|
|
scsh : $(scsh-targets)
|
2003-01-27 17:09:05 -05:00
|
|
|
|
|
|
|
s48-interfaces.scm : $(s48-interfaces)
|
|
|
|
cat $(s48-interfaces) > s48-interfaces.scm
|
|
|
|
|
|
|
|
s48-packages.scm : $(s48-packages)
|
2003-01-28 22:44:23 -05:00
|
|
|
build/xpackages.scm s48-packages.scm $(s48-packages)
|
2003-01-27 17:09:05 -05:00
|
|
|
|
|
|
|
interfaces.scm : $(s48-interfaces) $(scsh-interfaces)
|
|
|
|
cat $(s48-interfaces) $(scsh-interfaces) > interfaces.scm
|
|
|
|
|
|
|
|
packages.scm : $(s48-packages) $(scsh-packages)
|
2003-01-28 22:44:23 -05:00
|
|
|
build/xpackages.scm packages.scm $(s48-packages) $(scsh-packages)
|
2003-01-27 17:09:05 -05:00
|
|
|
|
|
|
|
.PHONY : clean
|
|
|
|
clean :
|
|
|
|
-rm -f $(targets)
|