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, 7 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

# Content
1 # Makefile for ihost
2 # $Id: Makefile,v 1.5 2001/11/19 21:53:14 tdb Exp $
3
4 include Config.inc
5
6 # these files and directories will be included in the distribution
7 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
33 dist:
34 cp -R $(FILES) $(BUILDDIR)
35 cd $(BUILDDIR) && tar -cvf $(TARFILE) $(FILES) $(PLUGINSDIR)
36 cd $(BUILDDIR) && gzip -fv9 $(TARFILE)
37 cd $(BUILDDIR) && rm -Rf $(FILES) $(PLUGINSDIR)
38
39 cvsbuild:
40 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
45 clean:
46 rm -Rf $(BUILDDIR)/$(TARFILE)
47 rm -Rf $(BUILDDIR)/$(TARGZFILE)
48 rm -Rf $(BUILDDIR)/$(ARCNAME)-*$(TAREXT)
49 rm -Rf $(BUILDDIR)/$(ARCNAME)-*$(TARGZEXT)
50 cd $(BUILDDIR) && rm -Rf $(FILES) $(PLUGINSDIR)
51 rm -Rf $(CVSBUILDTEMP)
52
53 distclean: clean
54 cd $(LINUXPLUGINS) && $(MAKE) clean
55 cd $(SOLARISPLUGINS) && $(MAKE) clean
56
57 update:
58 $(CVS) -q -d $(CVSROOT) update