ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/host/ihost-perl/Makefile
Revision: 1.6
Committed: Fri Mar 8 15:35:16 2002 UTC (22 years, 8 months ago) by tdb
Branch: MAIN
Changes since 1.5: +33 -12 lines
Log Message:
Tweak the ihost build so you can now choose the plugin. The default is
still the perl one, because that'll work on any platform. To build another
one you can now do one of:
  make perl
  make linux
  make solaris
Which will compile (if necessary) the relevant plugin and copy it into
place before making the ihost distribution archive.

File Contents

# User Rev Content
1 tdb 1.1 # Makefile for ihost
2 tdb 1.6 # $Id: Makefile,v 1.5 2001/11/19 21:53:14 tdb Exp $
3 tdb 1.1
4     include Config.inc
5    
6 tdb 1.5 # these files and directories will be included in the distribution
7 tdb 1.6 FILES = README ihost.pl ihostchk.sh
8     # where the plugins will be located
9     PLUGINSDIR = plugins
10    
11     # make the default perl, it's cross platform
12     all: perl
13    
14     # build the relevent plugin, then make the distribution
15     perl: build-perl dist
16     linux: build-linux dist
17     solaris: build-solaris dist
18    
19     build-perl:
20     mkdir -p $(BUILDDIR)/$(PLUGINSDIR)
21     cp -R $(PERLPLUGINS)/*.pl $(BUILDDIR)/$(PLUGINSDIR)
22    
23     build-linux:
24     cd $(LINUXPLUGINS) && $(MAKE) linux
25     mkdir -p $(BUILDDIR)/$(PLUGINSDIR)
26     cp $(LINUXPLUGINS)/linux $(BUILDDIR)/$(PLUGINSDIR)
27    
28     build-solaris:
29     cd $(SOLARISPLUGINS) && $(MAKE) solaris
30     mkdir -p $(BUILDDIR)/$(PLUGINSDIR)
31     cp $(SOLARISPLUGINS)/solaris $(BUILDDIR)/$(PLUGINSDIR)
32 tdb 1.1
33     dist:
34 tdb 1.5 cp -R $(FILES) $(BUILDDIR)
35 tdb 1.6 cd $(BUILDDIR) && tar -cvf $(TARFILE) $(FILES) $(PLUGINSDIR)
36 tdb 1.1 cd $(BUILDDIR) && gzip -fv9 $(TARFILE)
37 tdb 1.6 cd $(BUILDDIR) && rm -Rf $(FILES) $(PLUGINSDIR)
38 tdb 1.1
39     cvsbuild:
40 tdb 1.5 mkdir -p $(CVSBUILDTEMP)
41     $(CVS) -d $(CVSROOT) export -r $(REVISION) -d $(CVSBUILDTEMP) $(CVSMODULE)
42     cd $(CVSBUILDTEMP) && $(MAKE) dist
43     cp $(CVSBUILDTEMP)/$(BUILDDIR)/$(TARGZFILE) $(BUILDDIR)/$(ARCNAME)-$(REVISION)$(TARGZEXT)
44 tdb 1.1
45     clean:
46 tdb 1.4 rm -Rf $(BUILDDIR)/$(TARFILE)
47 tdb 1.1 rm -Rf $(BUILDDIR)/$(TARGZFILE)
48 tdb 1.4 rm -Rf $(BUILDDIR)/$(ARCNAME)-*$(TAREXT)
49 tdb 1.1 rm -Rf $(BUILDDIR)/$(ARCNAME)-*$(TARGZEXT)
50 tdb 1.6 cd $(BUILDDIR) && rm -Rf $(FILES) $(PLUGINSDIR)
51 tdb 1.1 rm -Rf $(CVSBUILDTEMP)
52    
53 tdb 1.6 distclean: clean
54     cd $(LINUXPLUGINS) && $(MAKE) clean
55     cd $(SOLARISPLUGINS) && $(MAKE) clean
56    
57 tdb 1.1 update:
58     $(CVS) -q -d $(CVSROOT) update