7 |
|
FILES = README `ls -d alerts/* | grep -v CVS` `ls -d allalerts/* | grep -v CVS`\ |
8 |
|
`ls -d historical/* | grep -v CVS` `ls -d index/* | grep -v CVS`\ |
9 |
|
`ls -d latest/* | grep -v CVS` `ls -d public/* | grep -v CVS`\ |
10 |
< |
`ls -d shared/* | grep -v CVS` |
10 |
> |
`ls -d shared/* | grep -v CVS` `ls -d logins/* | grep -v CVS`\ |
11 |
> |
`ls -d graphs/* | grep -v CVS` |
12 |
|
|
13 |
|
all: dist |
14 |
|
|
15 |
|
dist: |
16 |
< |
tar -cvf $(BUILDDIR)/$(TARFILE) $(FILES) |
16 |
> |
mkdir -p $(BUILDDIR)/temp |
17 |
> |
cp -Rp $(FILES) $(BUILDDIR)/temp |
18 |
> |
cd $(BUILDDIR)/temp && tar -cvf ../$(TARFILE) * |
19 |
|
gzip -fv9 $(BUILDDIR)/$(TARFILE) |
20 |
< |
zip -9 $(BUILDDIR)/$(ZIPFILE) $(FILES) |
20 |
> |
cd $(BUILDDIR)/temp && zip -9 ../$(ZIPFILE) * |
21 |
|
|
22 |
|
cvsbuild: |
23 |
|
$(CVS) -d $(CVSROOT) export -r $(REVISION) -d $(CVSBUILDTEMP) $(CVSMODULE) |
26 |
|
cp $(CVSBUILDTEMP)/$(BUILDDIR)/$(ZIPFILE) $(BUILDDIR)/$(ARCNAME)-$(REVISION)$(ZIPEXT) |
27 |
|
|
28 |
|
clean: |
29 |
+ |
rm -Rf $(BUILDDIR)/temp |
30 |
|
rm -Rf $(BUILDDIR)/$(ZIPFILE) |
31 |
|
rm -Rf $(BUILDDIR)/$(TARFILE) |
32 |
|
rm -Rf $(BUILDDIR)/$(TARGZFILE) |