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 161, Mon Oct 12 03:40:02 1998 UTC revision 162, Tue Oct 27 22:16:21 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    $(BINDIR).new:
12            if [ -d $(BINDIR) ]; then \
13                mv $(BINDIR) $(BINDIR).new && mv $(BINDIR).old $(BINDIR) ;\
14            else \
15                mkdir $(BINDIR).new ;\
16            fi
17    
18  $(SML): $(BINDIR)/COMPLIST  $(SML): $(BINDIR)/COMPLIST
19          -rm -f $@          -rm -f $@
20          ./xmakeml          ./xmakeml
21    
22  $(BINDIR)/COMPLIST:  $(BINDIR)/COMPLIST: $(BINDIR).new
23          [ -d $(BINDIR) -a -d $(BINDIR).old ] && \  
24          mv $(BINDIR) $(BINDIR).new && \  cleannew: $(BINDIR).new
25          mv $(BINDIR).old $(BINDIR)          -rm $(BINDIR).new/*
26    
27  recompile: $(SML)  recompile: $(SML)
28          mv $(BINDIR) $(BINDIR).old && mv $(BINDIR).new $(BINDIR)          mv $(BINDIR) $(BINDIR).old && mv $(BINDIR).new $(BINDIR)
29          echo '$(MLCMD);Compiler.Stats.summary();' | ./xrun $(SML)          -echo '$(MLCMD); Compiler.Stats.summary();' | ./xrun sml
30            if [ -f $(BINDIR)/COMPLIST ]; then \
31                mv $(SML) sml-old.$(HEAP_SUFFIX) &&\
32                ./xmakeml &&\
33                mv $(SML) sml-new.$(HEAP_SUFFIX) &&\
34                mv sml-old.$(HEAP_SUFFIX) $(SML) ;\
35            fi
36          mv $(BINDIR) $(BINDIR).new && mv $(BINDIR).old $(BINDIR)          mv $(BINDIR) $(BINDIR).new && mv $(BINDIR).old $(BINDIR)
37    
38  run: $(SML)  run: $(SML)

Legend:
Removed from v.161  
changed lines
  Added in v.162

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