| 4 |  | include Config.inc | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 5 |  |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 6 |  | # these files and directories will be included in the distribution | 
 
 
 
 
 
 
 
 
 
 
 | 7 | < | FILES = README ihost.pl ihostchk.sh plugins | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 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 -R $(FILES) $(BUILDDIR) | 
 
 
 
 
 
 
 
 
 
 
 | 35 | < | #       # messy :( | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 14 | < | rm -Rf $(BUILDDIR)/plugins/CVS | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 15 | < | cd $(BUILDDIR) && tar -cvf $(TARFILE) $(FILES) | 
 
 
 
 
 
 
 
 
 | 35 | > | cd $(BUILDDIR) && tar -cvf $(TARFILE) $(FILES) $(PLUGINSDIR) | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 36 |  | cd $(BUILDDIR) && gzip -fv9 $(TARFILE) | 
 
 
 
 
 
 
 
 
 
 
 | 37 | < | cd $(BUILDDIR) && rm -Rf $(FILES) | 
 
 
 
 
 
 
 
 
 | 37 | > | cd $(BUILDDIR) && rm -Rf $(FILES) $(PLUGINSDIR) | 
 
 
 
 
 
 
 
 
 
 
 | 38 |  |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 39 |  | cvsbuild: | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 40 |  | mkdir -p $(CVSBUILDTEMP) | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 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 | 
 
 
 
 
 
 
 
 
 | 35 | – |  | 
 
 
 
 
 
 
 
 
 | 36 | – | # for compatibility with other scripts | 
 
 
 
 
 
 
 
 
 | 37 | – | distclean: clean |