ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/host/ihost-perl/Makefile
Revision: 1.1
Committed: Wed Feb 28 16:41:04 2001 UTC (23 years, 6 months ago) by tdb
Branch: MAIN
Log Message:
Makefile for the ihost. This was complicated by the fact that it needed statgrab
which is further *up* the directory tree.  This should work fine though.

File Contents

# User Rev Content
1 tdb 1.1 # Makefile for ihost
2     # $Id$
3    
4     include Config.inc
5    
6     # these files will be included in the distribution
7     FILESRC = ihost.pl ../generic/statgrab.pl
8     FILES = ihost.pl statgrab.pl
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