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 |
|
|
12 |
|
all: dist |
13 |
|
|
14 |
|
dist: |
15 |
< |
tar -cvf $(BUILDDIR)/$(TARFILE) $(FILES) |
15 |
> |
mkdir -p $(BUILDDIR)/temp |
16 |
> |
cp -Rp $(FILES) $(BUILDDIR)/temp |
17 |
> |
cd $(BUILDDIR)/temp && tar -cvf ../$(TARFILE) * |
18 |
|
gzip -fv9 $(BUILDDIR)/$(TARFILE) |
19 |
< |
zip -9 $(BUILDDIR)/$(ZIPFILE) $(FILES) |
19 |
> |
cd $(BUILDDIR)/temp && zip -9 ../$(ZIPFILE) * |
20 |
|
|
21 |
|
cvsbuild: |
22 |
|
$(CVS) -d $(CVSROOT) export -r $(REVISION) -d $(CVSBUILDTEMP) $(CVSMODULE) |
25 |
|
cp $(CVSBUILDTEMP)/$(BUILDDIR)/$(ZIPFILE) $(BUILDDIR)/$(ARCNAME)-$(REVISION)$(ZIPEXT) |
26 |
|
|
27 |
|
clean: |
28 |
+ |
rm -Rf $(BUILDDIR)/temp |
29 |
|
rm -Rf $(BUILDDIR)/$(ZIPFILE) |
30 |
|
rm -Rf $(BUILDDIR)/$(TARFILE) |
31 |
|
rm -Rf $(BUILDDIR)/$(TARGZFILE) |