# Makefile for GNU hello. -*- Indented-Text -*- # Copyright (C) 1992, 1993 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. #### Start of system configuration section. #### @SET_MAKE@ CC = @CC@ INSTALL = @INSTALL@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_DATA = @INSTALL_DATA@ DEFS = @DEFS@ LIBS = @LIBS@ CFLAGS = -g LDFLAGS = -g prefix = $(DESTDIR)@prefix@ exec_prefix = @exec_prefix@ srcdir = @srcdir@ docdir = $(prefix)/share/doc/argus-2.0 #### End of system configuration section. #### SHELL = /bin/sh DIRS = ./common ./server DISTFILES = COPYING CREDITS ChangeLog INSTALL MANIFEST Makefile.in \ README VERSION bin common server clients doc include lib man \ support aclocal.m4 contrib config configure configure.in .c.o: $(CC) -c $(CPPFLAGS) $(DEFS) $(CFLAGS) $< .PHONY: install installdirs all: $(DIRS) @-for d in $(DIRS); \ do \ (cd $$d; echo "### Making in" `pwd`; \ $(MAKE) $(MFLAGS) ; \ echo "### Done with" `pwd`); \ done .PHONY: all install: force ${MAKE} installdirs [ -d $(prefix) ] || \ (mkdir -p $(prefix); chmod 755 $(prefix)) [ -d @sbindir@ ] || \ (mkdir -p @sbindir@; chmod 755 @sbindir@) [ -d $(exec_prefix)/argus ] || \ (mkdir -p $(exec_prefix)/argus; chmod 755 $(exec_prefix)/argus) [ -d $(exec_prefix)/argus/archive ] || \ (mkdir -p $(exec_prefix)/argus/archive; chmod 755 $(exec_prefix)/argus/archive) [ -d $(docdir) ] || \ (mkdir -p $(docdir); chmod 755 $(docdir)) [ -d $(docdir)/html ] || \ (mkdir -p $(docdir)/html; chmod 755 $(docdir)/html) [ -d $(docdir)/html/man ] || \ (mkdir -p $(docdir)/html/man; chmod 755 $(docdir)/html/man) @-for d in $(DIRS); \ do \ (cd $$d; echo "### Make install in" `pwd`; \ $(MAKE) $(MFLAGS) install; \ echo "### Done with" `pwd`); \ done $(INSTALL) -m 0644 $(srcdir)/doc/FAQ $(docdir) $(INSTALL) -m 0644 $(srcdir)/doc/HOW-TO $(docdir) $(INSTALL) -m 0644 $(srcdir)/doc/html/man/*.html $(docdir)/html/man $(INSTALL) -m 0644 $(srcdir)/README $(prefix)/argus $(INSTALL) -m 0644 $(srcdir)/README $(docdir) $(INSTALL) -m 0644 $(srcdir)/COPYING $(prefix)/argus $(INSTALL) -m 0644 $(srcdir)/COPYING $(docdir) $(INSTALL) -m 0755 $(srcdir)/bin/argusbug @bindir@/argusbug [ -d @mandir@ ] || \ (mkdir -p @mandir@; chmod 755 @mandir@) # [ -d @mandir@/man1 ] || \ # (mkdir -p @mandir@/man1; chmod 755 @mandir@/man1) [ -d @mandir@/man5 ] || \ (mkdir -p @mandir@/man5; chmod 755 @mandir@/man5) [ -d @mandir@/man8 ] || \ (mkdir -p @mandir@/man8; chmod 755 @mandir@/man8) $(INSTALL) -m 0644 $(srcdir)/man/man5/argus.5 @mandir@/man5/argus.5 $(INSTALL) -m 0644 $(srcdir)/man/man5/argus.conf.5 @mandir@/man5/argus.conf.5 # $(INSTALL) -m 0644 $(srcdir)/man/man5/rarc.5 @mandir@/man5/rarc.5 $(INSTALL) -m 0644 $(srcdir)/man/man8/argus.8 @mandir@/man8/argus.8 # $(INSTALL) -m 0644 $(srcdir)/man/man1/ra.1 @mandir@/man1/ra.1 # $(INSTALL) -m 0644 $(srcdir)/man/man1/racount.1 @mandir@/man1/racount.1 # $(INSTALL) -m 0644 $(srcdir)/man/man1/ragator.1 @mandir@/man1/ragator.1 # $(INSTALL) -m 0644 $(srcdir)/man/man1/ramon.1 @mandir@/man1/ramon.1 # $(INSTALL) -m 0644 $(srcdir)/man/man1/rasort.1 @mandir@/man1/rapolicy.1 # $(INSTALL) -m 0644 $(srcdir)/man/man1/rasort.1 @mandir@/man1/rasort.1 # $(INSTALL) -m 0644 $(srcdir)/man/man1/raxml.1 @mandir@/man1/raxml.1 uninstall: rm -f @mandir@/man5/argus.5 rm -f @mandir@/man5/argus.conf.5 rm -f @mandir@/man8/argus.8 rm -rf $(docdir) rm -f $(exec_prefix)/argus/COPYING rm -f $(exec_prefix)/argus/README installdirs: ${srcdir}/config/mkinstalldirs $(bindir) $(infodir) Makefile: Makefile.in config.status $(SHELL) config.status config.status: configure $(srcdir)/configure --no-create TAGS: $(SRCS) etags $(SRCS) .PHONY: clean mostlyclean distclean realclean dist mostlyclean: clean clean: $(CLEAN-DIRS) @-for d in $(DIRS); \ do \ (cd $$d; echo "### Making" clean "in" `pwd`; \ $(MAKE) $(MFLAGS) DESTDIR=$(DESTDIR) clean ; \ echo "### Done with" `pwd`); \ done distclean: force @-for d in $(DIRS); \ do \ (cd $$d; echo "### Making" distclean "in" `pwd`; \ $(MAKE) $(MFLAGS) DESTDIR=$(DESTDIR) distclean ; \ echo "### Done with" `pwd`); \ done rm -f config.* rm -f TAGS rm -f lib/*.a rm -f include/config.h clobber realclean: distclean rm -rf log rm -f ./Makefile config.* dist: distclean echo argus-`cat VERSION` > .fname rm -rf `cat .fname` mkdir `cat .fname` tar cf - $(DISTFILES) | (cd `cat .fname`; tar xpf -) ls -lR `cat .fname` | fgrep CVS: | sed 's/:$///' > exfile tar -X exfile -chozf `cat .fname`.tar.gz `cat .fname` rm -rf `cat .fname` .fname exfile force: /tmp depend: $(GENSRC) force @for i in $(DIRS) ; do \ if [ -d $$i ] ; then \ cd $$i; \ ${MAKE} depend || exit 1; \ cd ..; \ fi; \ done # Prevent GNU make v3 from overflowing arg limit on SysV. .NOEXPORT: