Makefile   [plain text]


##
# Makefile for tcsh
##

# Project info
Project               = tcsh
UserType              = Administration
ToolType              = Commands
Extra_CC_Flags        = -D_PATH_TCSHELL='\"/bin/tcsh\"' -no-cpp-precomp
Extra_Configure_Flags = --bindir="/bin"
Extra_Install_Flags   = DESTBIN="$(DSTROOT)/bin"
GnuAfterInstall       = install-links install-rc

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

Install_Target = install install.man

install-rc:
	$(_v) $(INSTALL_DIRECTORY) $(DSTROOT)$(ETCDIR)
	$(_v) $(INSTALL_DIRECTORY) $(DSTROOT)/usr/share/init/tcsh
	$(_v) $(INSTALL) -c -m 0644 $(SRCROOT)/$(Project)/init/README $(DSTROOT)/usr/share/init/tcsh
	$(_v) $(INSTALL) -c -m 0644 $(SRCROOT)/$(Project)/init/aliases $(DSTROOT)/usr/share/init/tcsh
	$(_v) $(INSTALL) -c -m 0644 $(SRCROOT)/$(Project)/init/completions $(DSTROOT)/usr/share/init/tcsh
	$(_v) $(INSTALL) -c -m 0644 $(SRCROOT)/$(Project)/init/environment $(DSTROOT)/usr/share/init/tcsh
	$(_v) $(INSTALL) -c -m 0644 $(SRCROOT)/$(Project)/init/login $(DSTROOT)/usr/share/init/tcsh
	$(_v) $(INSTALL) -c -m 0644 $(SRCROOT)/$(Project)/init/logout $(DSTROOT)/usr/share/init/tcsh
	$(_v) $(INSTALL) -c -m 0644 $(SRCROOT)/$(Project)/init/rc $(DSTROOT)/usr/share/init/tcsh
	$(_v) $(INSTALL) -c -m 0644 $(SRCROOT)/$(Project)/init/tcsh.defaults $(DSTROOT)/usr/share/init/tcsh
	$(_v) echo "source /usr/share/init/tcsh/rc"     > $(DSTROOT)$(ETCDIR)/csh.cshrc
	$(_v) echo "source /usr/share/init/tcsh/login"  > $(DSTROOT)$(ETCDIR)/csh.login
	$(_v) echo "source /usr/share/init/tcsh/logout" > $(DSTROOT)$(ETCDIR)/csh.logout

install-links:
	$(_v) $(INSTALL_DIRECTORY) $(DSTROOT)$(BINDIR)
	$(_v) $(LN) -f $(DSTROOT)$(BINDIR)/tcsh $(DSTROOT)$(BINDIR)/csh