SHELL = /bin/sh
srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = $(exec_prefix)/bin
libdir = $(prefix)/lib
mandir = $(prefix)/man
perl_path = @perl_path@
csh_path = @csh_path@
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
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 \
listen2.c listen2.mak
CONTRIB_FILES = README intro.doc cvscheck.man
PROGS = rcs2log cvs-diff-branch cvs-make-branch cvs-merge-branch cvs-revert cvs-view-diffs
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 $(PROGS) ; do\
$(INSTALL_PROGRAM) $$f $(bindir)/$$f; \
done
.PHONY: install
installdirs:
$(top_srcdir)/mkinstalldirs .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 elib/Makefile $(PROGS) $(CONTRIB_PROGS)
.PHONY: distclean
realclean: distclean
.PHONY: realclean
dist-dir:
mkdir ${DISTDIR}
for i in ${DISTFILES}; do \
ln $(srcdir)/$${i} ${DISTDIR}; \
done
cd elib; ${MAKE} dist-dir DISTDIR="../${DISTDIR}/elib"
.PHONY: dist-dir
subdir = contrib
Makefile: ../config.status Makefile.in
cd .. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status