source: trunk/debathena/scripts/build-server/build-all/Makefile @ 23584

Revision 23584, 782 bytes checked in by broder, 16 years ago (diff)
Using the stamps directory as a dependency of all package stamps causes some problems. Let's punt that feature for now - people can remember to create the stamp directories by hand.
Line 
1suite := squeeze
2psuite := lenny
3STAMPS := /afs/sipb.mit.edu/project/debathena/machines/awesome-build-server/stamps.$(suite)
4
5package = $(STAMPS)/$(1).done
6
7all: build-all
8
9deps.mk: gen-build-deps
10        ./gen-build-deps $(psuite) > $@
11include deps.mk
12
13build/%: $(call package,%)
14        :
15
16$(call package,%):
17        file=$$(mktemp -t 'stupid.XXXXXX') && \
18                echo "screen sh -c '$(CURDIR)/do-build $* $(STAMPS)/$* $(suite) $(psuite)'" > "$$file" && \
19                echo "other" >> "$$file" && \
20                screen -X source "$$file" && \
21                sleep 1 && \
22                rm -f "$$file"
23        [ -e $(STAMPS)/$*.started ]
24        while ! [ -e $(STAMPS)/$*.done ] && ! [ -e $(STAMPS)/$*.error ]; do sleep 1; done
25        rm -f $(STAMPS)/$*.started
26        rm -f $(STAMPS)/$*.error
27        [ -e $(STAMPS)/$*.done ]
28
29clean:
30        rm -f deps.mk $(STAMPS)/*.started $(STAMPS)/*.error
Note: See TracBrowser for help on using the repository browser.