# Makefile for GNU CVS contributed sources. # Do not use this makefile directly, but only from `../Makefile'. # Copyright (C) 1986, 1988-1990 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. SHELL = /bin/sh srcdir = . top_srcdir = .. prefix = exec_prefix = ${prefix} # Where to install the executables. bindir = ${exec_prefix}/bin # Where to put the system-wide .cvsrc file libdir = ${exec_prefix}/lib # Where to put the manual pages. mandir = ${prefix}/share/man # where to find command interpreters perl_path = /usr/local/bin/perl csh_path = /bin/csh # Use cp if you don't have install. INSTALL = /usr/bin/install -c -o root -g wheel INSTALL_DATA = install -o root -g wheel -m 444 INSTALL_PROGRAM = install -s -o root -g wheel -m 555 INSTALL_SCRIPT = install -o root -g wheel -m 555 DISTFILES = \ ChangeLog README .cvsignore intro.doc \ Makefile.in clmerge.pl cln_hist.pl commit_prep.pl cvs2vendor.sh \ cvs_acls.pl cvscheck.sh cvscheck.man cvshelp.man descend.sh \ descend.man dirfns.shar log.pl log_accum.pl mfpipe.pl rcs-to-cvs.sh \ rcs2log.sh rcslock.pl sccs2rcs.csh rcs2sccs.sh # files installed in $(libdir)/cvs/contrib # CONTRIB_FILES = README intro.doc cvscheck.man # things we actually build and install.... # PROGS = rcs2log CONTRIB_PROGS = clmerge cln_hist commit_prep cvs2vendor cvs_acls cvscheck \ log log_accum mfpipe rcs-to-cvs rcs2log rcslock sccs2rcs .SUFFIXES: .pl .sh .csh .pl: rm -f $@ sed -e 's,xPERL_PATHx,$(perl_path),' $< > $@-t mv $@-t $@ chmod +x $@ .csh: rm -f $@ sed -e 's,xCSH_PATHx,$(csh_path),' $< > $@-t mv $@-t $@ chmod +x $@ .sh: rm -f $@ cp $< $@ chmod +x $@ all: Makefile $(PROGS) $(CONTRIB_PROGS) .PHONY: all install: all installdirs for f in $(CONTRIB_FILES) ; do\ $(INSTALL_DATA) $(srcdir)/$$f $(libdir)/cvs/contrib/$$f; \ done for f in $(CONTRIB_PROGS) ; do\ $(INSTALL_SCRIPT) $$f $(libdir)/cvs/contrib/$$f; \ done for f in $(PROGS) ; do\ $(INSTALL_SCRIPT) $$f $(bindir)/$$f; \ done .PHONY: install installdirs: $(top_srcdir)/mkinstalldirs $(libdir)/cvs/contrib .PHONY: installdirs tags: .PHONY: tags TAGS: .PHONY: TAGS ls: @echo $(DISTFILES) .PHONY: ls clean: rm -f *.o core .PHONY: clean distclean: clean rm -f Makefile $(PROGS) $(CONTRIB_PROGS) .PHONY: distclean realclean: distclean .PHONY: realclean dist-dir: mkdir ${DISTDIR} for i in ${DISTFILES}; do \ ln $(srcdir)/$${i} ${DISTDIR}; \ done .PHONY: dist-dir subdir = contrib Makefile: ../config.status Makefile.in cd .. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status