Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] Diff of /sml/trunk/src/compiler/Makefile
ViewVC logotype

Diff of /sml/trunk/src/compiler/Makefile

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 157, Mon Oct 12 01:50:35 1998 UTC revision 163, Thu Oct 29 21:00:27 1998 UTC
# Line 1  Line 1 
1  SML=sml.x86-linux  arch_n_opsys := $(shell ../../bin/.arch-n-opsys)
2  BINDIR=bin.x86-unix  ARCH := $(shell eval "$(arch_n_opsys)"; echo -n $$ARCH)
3    HEAP_SUFFIX := $(shell eval "$(arch_n_opsys)"; echo -n $$HEAP_SUFFIX)
4    BINDIR_SUFFIX=$(ARCH)-unix
5    
6    # don't ask me why bindir_suffix <> heap_suffix
7    SML=sml.$(HEAP_SUFFIX)
8    BINDIR=bin.$(BINDIR_SUFFIX)
9  MLCMD=CMB.make()  MLCMD=CMB.make()
10    
11    default: $(SML)
12    
13    $(BINDIR).new:
14            if [ -d $(BINDIR) ]; then \
15                mv $(BINDIR) $(BINDIR).new && mv $(BINDIR).old $(BINDIR) ;\
16            else \
17                mkdir $(BINDIR).new ;\
18            fi
19    
20  $(SML): $(BINDIR)/COMPLIST  $(SML): $(BINDIR)/COMPLIST
21          -rm -f $@          -rm -f $@
22          ./xmakeml          ./xmakeml
23    
24  $(BINDIR)/COMPLIST:  $(BINDIR)/COMPLIST: $(BINDIR).new
25          [ -d $(BINDIR) -a -d $(BINDIR).old ] && \  
26          mv $(BINDIR) $(BINDIR).new && \  cleannew: $(BINDIR).new
27          mv $(BINDIR).old $(BINDIR)          -rm $(BINDIR).new/*
28    
29  recompile: $(SML)  recompile: $(SML)
30          mv $(BINDIR) $(BINDIR).old && mv $(BINDIR).new $(BINDIR)          mv $(BINDIR) $(BINDIR).old && mv $(BINDIR).new $(BINDIR)
31          echo '$(MLCMD);Compiler.Stats.summary();' | ./xrun $(SML)          -echo '$(MLCMD); Compiler.Stats.summary();' | ./xrun sml
32            if [ -f $(BINDIR)/COMPLIST ]; then \
33                mv $(SML) sml-old.$(HEAP_SUFFIX) &&\
34                ./xmakeml &&\
35                mv $(SML) sml-new.$(HEAP_SUFFIX) &&\
36                mv sml-old.$(HEAP_SUFFIX) $(SML) ;\
37            fi
38          mv $(BINDIR) $(BINDIR).new && mv $(BINDIR).old $(BINDIR)          mv $(BINDIR) $(BINDIR).new && mv $(BINDIR).old $(BINDIR)
39    
40  run: $(SML)  run: $(SML)

Legend:
Removed from v.157  
changed lines
  Added in v.163

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0