include variables.def PROJECT = Shells TARGETS += regenerate OTHER_CLEANS += clean_generated include rules.def regenerate: @echo regenerating aliases. echo "SHELLDIR = $(SHELLDIR)" echo "GENERADIR = $(GENERADIR)" $(CATCHER)'if [ ! -d $(GENERADIR) ]; then mkdir $(GENERADIR); fi' $(CATCHER)perl $(SHELLDIR)/generate_aliases.pl $(CATCHER)perl $(SHELLDIR)/copy_variables.pl $(CATCHER)'(export LIGHTWEIGHT_INIT=true; source $(SHELLDIR)/profile.sh; perl $(SHELLDIR)/new_sig.pl)' clean_generated: @echo removing generated aliases. $(CATCHER)'if [ -d $(GENERADIR) ]; then \rm -rf $(GENERADIR); fi' $(CATCHER)'if [ -f $(SHELLDIR)/custom/variable.bat ]; then \rm -f $(SHELLDIR)/custom/variable.bat; fi' # the variable.bat cleanup is necessitated by an obnoxious problem in 4nt # and maybe other dossy shells that refuse to "call" files unless they end # in the ".bat" extension.