## ## Makefile.in is processed by configure to produce Makefile. ## ## configure is produced by GNU autoconf. If you do not see a configure ## script, your distribution is incomplete. However, you might be able ## to complete it by running "make -f Makefile.in prepare". ## ## $Id: Makefile.in,v 1.2 2005/01/17 20:42:31 dgc Exp $ ## ########################################################################### ## This section is for autoconf projects only. Remove it for non-autoconf. EMBED_SH= @EMBED_SH@ EMBED_H = @EMBED_H@ prefix = @prefix@ exec_prefix = @exec_prefix@ bindir = @bindir@ sbindir = @sbindir@ includedir = @includedir@ libdir = @libdir@ mandir = @mandir@ etcdir = @prefix@/etc docdir = @prefix@/doc CC = @CC@ LIBS = @LIBS@ CFLAGS = @CFLAGS@ CPPFLAGS= -I. @CPPFLAGS@ -I$(includedir) LDFLAGS = @LDFLAGS@ -L$(libdir) INSTALL = @INSTALL@ ########################################################################### ## General. There should be no more auoconf @substitutions@ below -- make ## variables above if you need them. PROGRAM = drac.syslogd DOCDIR = doc RELEASE = "$Name: rel_0_1 $" DOCS = $(DOCDIR)/$(PROGRAM).1 \ $(DOCDIR)/$(PROGRAM).txt $(DOCDIR)/$(PROGRAM).html \ $(DOCDIR)/$(PROGRAM).ps $(DOCDIR)/$(PROGRAM).pdf CLEAN = *.o core $(PROGRAM) release.c embed_code.h DISTCLEAN = confdefs.h config.cache config.h config.log config.status Makefile CVSCLEAN = configure aclocal.m4 ## Add other sources here. SRCS = $(PROGRAM).c ## Put corresponding objs here. OBJS = $(PROGRAM).o ## Add headers here. HDRS = ## Misc. other items that should be EMBEDded. MISC = release.sh \ doc/man.m4 doc/$(PROGRAM).man4 \ configure.in config.h.in Makefile.in \ aux/config.guess aux/install-sh \ m4/aclocal.sh \ m4/dgc_with_libwrap.m4 m4/dgc_enable_debug.m4 m4/dgc_with_embed.m4 \ m4/dgc_with_libdrac.m4 \ ChangeLog aux/ChangeLog doc/ChangeLog m4/ChangeLog \ README TODO LICENSE CVSINIT_ANY = LICENSE README TODO doc doc/man.m4 doc/$(PROGRAM).man4 \ $(PROGRAM).c release.sh CVSINIT_AC = Makefile.in aux aux/* config.h.in configure.in m4 m4/* CVSINIT_MC = Makefile CVSINIT_ALL = $(CVSINIT_ANY) $(CVSINIT_AC) ########################################################################### ## Targets all: $(PROGRAM) doc cvsinit: cvs add $(CVSINIT_ALL) rm -rf $(CVSINIT_MC) prepare: configure doc rm -f Makefile config.h update: cvs up configure: configure.in aclocal.m4 autoconf aclocal.m4: m4/aclocal.sh m4/aclocal.sh embed_code.h: $(EMBED_SH) $(SRCS) $(HDRS) $(MISC) sh $(EMBED_SH) $(SRCS) $(HDRS) $(MISC) $(PROGRAM).o: $(EMBED_H) $(PROGRAM): $(OBJS) release.o $(CC) $(LDFLAGS) -o $(PROGRAM) $(OBJS) $(LIBS) release.o install: $(PROGRAM) $(DOCS) $(INSTALL) -d $(bindir) $(INSTALL) -d $(mandir)/man1 $(INSTALL) -d $(docdir) $(INSTALL) -d $(etcdir) $(INSTALL) $(PROGRAM) $(bindir) $(INSTALL) doc/$(PROGRAM).1 $(mandir)/man1 for doc in $(DOCS); do \ $(INSTALL) $$doc $(docdir); \ done doc: $(DOCS) # # builds a release.c containing the release number (if tagged as r_a_b_c_d, # rel_a_b_c_d, release_a_b_c_d, etc) or today's date (if not). release.c: Makefile release.sh sh release.sh '$(RELEASE)' >release.c ########################################################################### ## Docs TXTROFF = groff -te -man -Tascii HTMLROFF= groff -te -man -Thtml PSROFF = groff -te -man -Tps PS2PDF = ps2pdf $(DOCDIR)/$(PROGRAM).1: $(DOCDIR)/$(PROGRAM).man4 cd $(DOCDIR); \ cat man.m4 $(PROGRAM).man4 \ | m4 \ | sed -e 's/^[ ]*$$//' \ | grep -v '^$$' >$(PROGRAM).1 $(DOCDIR)/$(PROGRAM).txt: $(DOCDIR)/$(PROGRAM).1 cd $(DOCDIR); \ cat $(PROGRAM).1 | $(TXTROFF) >$(PROGRAM).txt $(DOCDIR)/$(PROGRAM).html: $(DOCDIR)/$(PROGRAM).1 cd $(DOCDIR); \ cat $(PROGRAM).1 | $(HTMLROFF) >$(PROGRAM).html $(DOCDIR)/$(PROGRAM).ps: $(DOCDIR)/$(PROGRAM).1 cd $(DOCDIR); \ cat $(PROGRAM).1 | $(PSROFF) >$(PROGRAM).ps $(DOCDIR)/$(PROGRAM).pdf: $(DOCDIR)/$(PROGRAM).ps cd $(DOCDIR); \ $(PS2PDF) $(PROGRAM).ps >$(PROGRAM).pdf ########################################################################### ## Cleaning targets clean: rm -f $(CLEAN) distclean: clean rm -f $(DISTCLEAN) rm -f $(DOCDIR)/grohtml_*.png rm -rf autom4te.cache cvsclean: distclean rm -rf $(DOCS) rm -rf $(CVSCLEAN)