src/Tools/8bit/Makefile
changeset 1907 d069f23e941f
parent 1856 09c90fdcd9f2
child 1987 209071ef2c79
equal deleted inserted replaced
1906:4699a9058a4f 1907:d069f23e941f
    36 PERL=/usr/local/dist/DIR/perl4/bin/perl
    36 PERL=/usr/local/dist/DIR/perl4/bin/perl
    37 
    37 
    38 # use LaTeX2e instead of LaTeX 2.09
    38 # use LaTeX2e instead of LaTeX 2.09
    39 # this flag is currently only sensible for perl script gen-isadoc
    39 # this flag is currently only sensible for perl script gen-isadoc
    40 # set to empty string for LaTeX 2.09
    40 # set to empty string for LaTeX 2.09
    41 #USE2E='-2e'
       
    42 USE2E='-2e'
    41 USE2E='-2e'
    43 
    42 
    44 # name of GNU make utility: `make' on linux box; `gmake' on solaris
    43 # name of GNU make utility: `make' on linux box; `gmake' on solaris
    45 #GMAKE=make
    44 #GMAKE=make
    46 GMAKE=gmake
    45 GMAKE=gmake
    51 
    50 
    52 #keycode for Hyper_R       20 on SUN, 113 on Linux box 
    51 #keycode for Hyper_R       20 on SUN, 113 on Linux box 
    53 #HYPER_R=113
    52 #HYPER_R=113
    54 HYPER_R=20
    53 HYPER_R=20
    55 
    54 
    56 CONFIGFIlES = config/Makefile config/key-table.inp config/conv-tables.inp
    55 CONFIGFILES = config/Makefile config/key-table.inp config/conv-tables.inp
    57 
    56 
    58 #path stem to isabelle source, used by patcher
    57 #path stem to isabelle source, used by patcher
    59 STEM = /usr/stud/oheimb/isabelle/
    58 STEM = /usr/stud/oheimb/isabelle/
    60 
    59 
    61 ###############################################
    60 ###############################################
   104 #	echo "type 'make install' to install everything"
   103 #	echo "type 'make install' to install everything"
   105 #	echo "type 'make clean' to cleanup"
   104 #	echo "type 'make clean' to cleanup"
   106 
   105 
   107 # ----------------------------------------------------
   106 # ----------------------------------------------------
   108 
   107 
   109 all:  $(CONFIGFIlES)\
   108 all:  $(CONFIGFILES)\
   110 	bin/gen-isa2latex bin/gen-isaterm bin/gen-isavim bin/gen-isaaxe\
   109 	bin/gen-isa2latex bin/gen-isaterm bin/gen-isavim bin/gen-isaaxe\
   111 	bin/gen-isa_gnu_emacs bin/gen-isa_xemacs bin/gen-isadoc\
   110 	bin/gen-isa_gnu_emacs bin/gen-isa_xemacs bin/gen-isadoc\
   112 	configuration a2isa bin/isa2latex bin/a2isa\
   111 	configuration a2isa bin/isa2latex bin/a2isa\
   113 	bin/isa_gnu_emacs bin/isa_xemacs bin/isavim bin/isaaxe\
   112 	bin/isa_gnu_emacs bin/isa_xemacs bin/isavim bin/isaaxe\
   114 	bin/isaterm bin/isa_xmosaic bin/isapal bin/codetable bin/patcher\
   113 	bin/isaterm bin/isa_xmosaic bin/isapal bin/codetable bin/patcher\
   131 # internal targets        
   130 # internal targets        
   132 ###############################################
   131 ###############################################
   133 
   132 
   134 ####### configuration files and the Makefile
   133 ####### configuration files and the Makefile
   135 
   134 
   136 $(CONFIGFIlES): Makefile
   135 $(CONFIGFILES): Makefile
   137 	@echo "configuring the configuration files"
   136 	@echo "configuring the configuration files"
   138 	@cd config;\
   137 	@cd config;\
   139 	$(PERL) -pi \
   138 	$(PERL) -pi \
   140 		-e "s#^USE2E\s*=.*#USE2E= $(USE2E)#g;" \
   139 		-e "s#^USE2E\s*=.*#USE2E= $(USE2E)#g;" \
       
   140 		-e "s#^GMAKE\s*=.*#GMAKE= $(GMAKE)#g;" \
   141 		Makefile
   141 		Makefile
   142 	@cd config;\
   142 	@cd config;\
   143 	$(PERL) -pi \
   143 	$(PERL) -pi \
   144 		-e "s#^BIN_DIR\s*\".*#BIN_DIR \"$(CONV_BIN_DIR)\"#g;" \
   144 		-e "s#^BIN_DIR\s*\".*#BIN_DIR \"$(CONV_BIN_DIR)\"#g;" \
   145 		key-table.inp
   145 		key-table.inp
   154 	
   154 	
   155 bin/gen-isa2latex: Makefile #perl/generators/gen-isa2latex.pl
   155 bin/gen-isa2latex: Makefile #perl/generators/gen-isa2latex.pl
   156 	@echo "configuring gen-isa2latex"
   156 	@echo "configuring gen-isa2latex"
   157 	@cd perl/generators;\
   157 	@cd perl/generators;\
   158 	$(PERL) -pi \
   158 	$(PERL) -pi \
       
   159 		-e "s#GMAKE\s*=.*#GMAKE= \"$(GMAKE)\";#g;" \
   159 		-e "s&^#!.*&#!$(PERL)&g;" \
   160 		-e "s&^#!.*&#!$(PERL)&g;" \
   160 		gen-isa2latex.pl
   161 		gen-isa2latex.pl
   161 	@rm -f bin/gen-isa2latex;\
   162 	@rm -f bin/gen-isa2latex;\
   162 	ln -s ../perl/generators/gen-isa2latex.pl bin/gen-isa2latex
   163 	ln -s ../perl/generators/gen-isa2latex.pl bin/gen-isa2latex
   163 
   164