2.5.9 release
[k8jam.git] / misc / Jamdopkg
blob2cc04483acedfe9444c521ca015df3ff54b1956a
1 if $(BINDIR)  { InstallBin $(BINDIR) : jam ; }
4 # Distribution making from here on out.
7 ALLSOURCE =
8   Build.com Build.mpw Jam.html Jambase Jambase.html Jamfile
9   Jamfile.html Porting README RELNOTES builtins.c builtins.h
10   command.c command.h compile.c compile.h execcmd.h execmac.c
11   execnt.c execunix.c execvms.c expand.c expand.h filemac.c filent.c
12   fileos2.c filesys.h fileunix.c filevms.c glob.c hash.c hash.h
13   hdrmacro.c hdrmacro.h headers.c headers.h jam.c jam.h jambase.c
14   jambase.h jamgram.c jamgram.h jamgram.y jamgram.yy jamgramtab.h
15   lists.c lists.h make.c make.h make1.c mkjambase.c newstr.c newstr.h
16   option.c option.h parse.c parse.h patchlevel.h pathmac.c pathsys.h
17   pathunix.c pathvms.c regexp.c regexp.h rules.c rules.h scan.c
18   scan.h search.c search.h timestamp.c timestamp.h variable.c variable.h
19   strings.c strings.h
20   yyacc
21   hdrmacro.c
22   INSTALL
23   README.ORG
24   CHANGES
25   common.mk
26   [ GLOB builds : *.mk ]
27   [ GLOB builds/unix : *.in ]
28   builds/unix/configure
29   builds/unix/configure.ac
30   builds/unix/config.sub
31   builds/unix/config.guess
32   builds/unix/install-sh
33   builds/unix/mkinstalldirs
34   configure
35   ;
38 rule Binary
40     NotFile  package ;
41     Depends  package : $(<) ;
43     DEPENDS $(<) : $(>) ;
45     switch $(<)
46     {
47     case *-win32.zip       : Zip-Exe  $(<) : $(>) ;
48     case *-os2.zip         : Zip-Exe  $(<) : $(>) ;
49     case *-linux-libc6.tar : GZip-Exe $(<) : $(>) ;
50     }
54 rule Package
56   NotFile package ;
57   Depends package : $(<) ;
59   DEPENDS $(<) : $(>) ;
61   switch $(<)
62   {
63   case *.tar  : { Tar-Gz  $(<) : $(>) ; Tar-Bz2 $(<) : $(>) ; }
64   case *.zip  :   Zip     $(<) : $(>) ;
65   }
69 VERSION = k8jam-2.5.9 ;
71 actions Tar-Gz
73   ln -s . $(VERSION)
74   tar cvhf $(<) $(VERSION)/$(>)
75   rm -f $(VERSION)
76   gzip -9f $(<)
79 actions Tar-Bz2
81   ln -s . $(VERSION)
82   tar cvhf $(<) $(VERSION)/$(>)
83   bzip2 -9f $(<)
84   rm -f $(<)
88 if $(UNIX)
90   actions Zip
91   {
92     rm -f $(<)
93     ln -s . $(VERSION)
94     zip -9rl $(<) $(VERSION)/$(>)
95     rm -f $(VERSION)
96   }
98 else
100   actions Zip
101   {
102     $(RMF) $(<)
103     zip -9rl $(<) $(>)
104   }
108 actions Zip-Exe
110   zip -9j $(<) $(LOCATE_TARGET)\jam.exe
113 actions GZip-Exe
115   ln -s $(LOCATE_TARGET)/jam jam
116   tar chf $(<) jam
117   rm -f jam
118   gzip -9f $(<)
123 if $(NT)
125   Binary  $(VERSION)-win32.zip : $(ALLSOURCE) ;
126   Package $(VERSION).zip       : $(ALLSOURCE) ;
128 else if $(OS2)
130   Binary  $(VERSION)-os2.zip : $(ALLSOURCE) ;
131   Package $(VERSION).zip     : $(ALLSOURCE) ;
133 else if $(UNIX)
135   # how can we detect the C library version reliably ??
136   # for now, this should only be used for convenience
137   # purposes, until we add .rpm and .deb support in..
138   #
139   if $(OS) = LINUX
140   {
141     Binary $(VERSION)-linux-libc6.tar : jam ;
142   }
144   Package $(VERSION).tar : $(ALLSOURCE) ;
145   Package $(VERSION).zip : $(ALLSOURCE) ;