ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/host/ihost-perl/Makefile
(Generate patch)

Comparing projects/cms/source/host/ihost-perl/Makefile (file contents):
Revision 1.4 by tdb, Mon Mar 26 17:02:20 2001 UTC vs.
Revision 1.6 by tdb, Fri Mar 8 15:35:16 2002 UTC

# Line 3 | Line 3
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
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 < all: dist
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 $(FILESRC) $(BUILDDIR)
35 <        cd $(BUILDDIR) && tar -cvf $(TARFILE) $(FILES)
34 >        cp -R $(FILES) $(BUILDDIR)
35 >        cd $(BUILDDIR) && tar -cvf $(TARFILE) $(FILES) $(PLUGINSDIR)
36          cd $(BUILDDIR) && gzip -fv9 $(TARFILE)
37 <        cd $(BUILDDIR) && rm $(FILES)
37 >        cd $(BUILDDIR) && rm -Rf $(FILES) $(PLUGINSDIR)
38  
39   cvsbuild:
40 <        mkdir -p $(CVSBUILDTEMP)/$(IHOST)
41 <        mkdir -p $(CVSBUILDTEMP)/$(STATGRAB)
42 <        $(CVS) -d $(CVSROOT) export -r $(REVISION) -d $(CVSBUILDTEMP)/$(IHOST) $(IHOSTMODULE)
43 <        $(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)
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)
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
36
37 # for compatibility with other scripts
38 distclean: clean

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines