1 |
# Makefile for ihost |
2 |
# $Id: Makefile,v 1.2 2001/03/07 02:20:45 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)/$(TARGZFILE) |
28 |
rm -Rf $(BUILDDIR)/$(ARCNAME)-*$(TARGZEXT) |
29 |
cd $(BUILDDIR) && rm -Rf $(FILES) |
30 |
rm -Rf $(CVSBUILDTEMP) |
31 |
|
32 |
update: |
33 |
$(CVS) -q -d $(CVSROOT) update |
34 |
|
35 |
# for compatibility with other scripts |
36 |
distclean: clean |