1 |
# Makefile for ihost |
2 |
# $Id: Makefile,v 1.3 2001/03/13 14:05:34 tdb1 Exp $ |
3 |
|
4 |
include Config.inc |
5 |
|
6 |
# these files will be included in the distribution |
7 |
FILESRC = README ihost.pl ../generic/statgrab.pl ihostchk.sh |
8 |
FILES = README ihost.pl statgrab.pl ihostchk.sh |
9 |
|
10 |
all: dist |
11 |
|
12 |
dist: |
13 |
cp $(FILESRC) $(BUILDDIR) |
14 |
cd $(BUILDDIR) && tar -cvf $(TARFILE) $(FILES) |
15 |
cd $(BUILDDIR) && gzip -fv9 $(TARFILE) |
16 |
cd $(BUILDDIR) && rm $(FILES) |
17 |
|
18 |
cvsbuild: |
19 |
mkdir -p $(CVSBUILDTEMP)/$(IHOST) |
20 |
mkdir -p $(CVSBUILDTEMP)/$(STATGRAB) |
21 |
$(CVS) -d $(CVSROOT) export -r $(REVISION) -d $(CVSBUILDTEMP)/$(IHOST) $(IHOSTMODULE) |
22 |
$(CVS) -d $(CVSROOT) export -r $(REVISION) -d $(CVSBUILDTEMP)/$(STATGRAB) $(STATGRABMODULE) |
23 |
cd $(CVSBUILDTEMP)/$(IHOST) && $(MAKE) dist |
24 |
cp $(CVSBUILDTEMP)/$(IHOST)/$(BUILDDIR)/$(TARGZFILE) $(BUILDDIR)/$(ARCNAME)-$(REVISION)$(TARGZEXT) |
25 |
|
26 |
clean: |
27 |
rm -Rf $(BUILDDIR)/$(TARFILE) |
28 |
rm -Rf $(BUILDDIR)/$(TARGZFILE) |
29 |
rm -Rf $(BUILDDIR)/$(ARCNAME)-*$(TAREXT) |
30 |
rm -Rf $(BUILDDIR)/$(ARCNAME)-*$(TARGZEXT) |
31 |
cd $(BUILDDIR) && rm -Rf $(FILES) |
32 |
rm -Rf $(CVSBUILDTEMP) |
33 |
|
34 |
update: |
35 |
$(CVS) -q -d $(CVSROOT) update |
36 |
|
37 |
# for compatibility with other scripts |
38 |
distclean: clean |