Makefile   [plain text]


##
# Makefile for CVS
##

# Project info
Project               = cvs_wrapped
Install_Prefix        = /usr
Install_Man           = /usr/share/man
Extra_Configure_Flags = --with-gssapi
UserType              = Developer
ToolType              = Commands
GnuAfterInstall	      = install-man-pages cleanup

# These will get deleted.
Install_HTML          = /Developer

# It's a GNU Source project
include $(MAKEFILEPATH)/CoreOS/ReleaseControl/GNUSource.make

install-man-pages:
	rm -rf $(DSTROOT)/Developer

cleanup:
	rm -f $(DSTROOT)/usr/bin/cvsbug $(DSTROOT)/usr/bin/rcs2log
	rm -f $(DSTROOT)/usr/share/man/man5/cvs.5
	rm -f $(DSTROOT)/usr/share/man/man8/cvsbug.8
	mv $(DSTROOT)/usr/bin/cvs $(DSTROOT)/usr/bin/ocvs
	-rmdir $(DSTROOT)/usr/share/man/man{5,8}
	chmod -x $(DSTROOT)/usr/share/man/man1/ocvs.1
	mkdir -p $(DSTROOT)/usr/local/bin
	for script in diff-branch make-branch merge-branch revert view-diffs; do \
		mv $(DSTROOT)/usr/bin/cvs-$${script} $(DSTROOT)/usr/local/bin/cvs-$${script}; \
		ln -s cvs-$${script} $(DSTROOT)/usr/local/bin/ocvs-$${script}; \
	done