summaryrefslogtreecommitdiff
path: root/skribe/etc/bigloo/Makefile
blob: 82ffceb1301f7e97b293a4af3d57da795299904d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
#*=====================================================================*/
#*    serrano/prgm/project/skribe/etc/bigloo/Makefile                  */
#*    -------------------------------------------------------------    */
#*    Author      :  Manuel Serrano                                    */
#*    Creation    :  Thu Oct 23 08:58:55 2003                          */
#*    Last change :  Wed Nov 17 10:51:50 2004 (serrano)                */
#*    Copyright   :  2003-04 Manuel Serrano                            */
#*    -------------------------------------------------------------    */
#*    The Bigloo etc Makefile                                          */
#*=====================================================================*/
include Makefile.skb
include ../Makefile.config

#*---------------------------------------------------------------------*/
#*    TMPDIR                                                           */
#*---------------------------------------------------------------------*/
DISTRIBTMPDIR	= /tmp
DISTRIBDIR	= $$HOME/prgm/distrib

#*---------------------------------------------------------------------*/
#*    POPULATION                                                       */
#*---------------------------------------------------------------------*/
POPULATION	= configure Makefile Makefile.tpl

#*---------------------------------------------------------------------*/
#*    distrib                                                          */
#*    -------------------------------------------------------------    */
#*    This rule must be executed in the main SKribe directory          */
#*    (i.e. ../..). They must be run with a command such as:           */
#*    "cd skribe; make -f etc/bigloo/Makefile distrib".                */
#*---------------------------------------------------------------------*/
.PHONY: distrib distrib-src distrib-jvm

distrib: distrib-src # distrib-jvm

#*--- distrib-src -----------------------------------------------------*/
distrib-src:
	@ echo ">>> distrib-src"; \
	(skribedir=`pwd` \
         && /bin/rm -rf $(DISTRIBTMPDIR)/skribe \
         && mkdir -p $(DISTRIBTMPDIR)/skribe \
         && cd $(DISTRIBTMPDIR)/skribe \
         && $(MAKE) -f $$skribedir/Makefile -I $$skribedir checkout \
	 && /bin/rm -rf contribs \
         && $(MAKE) -f $$skribedir/etc/bigloo/Makefile -I $$skribedir/etc/bigloo do-distrib-src \
         && $(RM) -rf $(DISTRIBTMPDIR)/skribe$(SKRIBERELEASE))

.PHONY: do-distrib-src
do-distrib-src:
	(cd .. && \
         mv skribe skribe$(SKRIBERELEASE) && \
         tar cvfz $(DISTRIBDIR)/skribe$(SKRIBERELEASE).tar.gz skribe$(SKRIBERELEASE))

#*--- distrib-jvm -----------------------------------------------------*/
distrib-jvm:
	@ echo ">>> distrib-jvm"; \
	(skribedir=`pwd` \
         && /bin/rm -rf $(DISTRIBTMPDIR)/skribe \
         && mkdir -p $(DISTRIBTMPDIR)/skribe \
	 && cd $(DISTRIBTMPDIR)/skribe \
         && $(MAKE) -f $$skribedir/Makefile -I $$skribedir checkout \
	 && /bin/rm -rf contribs \
         && $(MAKE) -f $$skribedir/etc/bigloo/Makefile -I $$skribedir/etc/bigloo do-distrib-jvm \
         && $(RM) -rf $(DISTRIBTMPDIR)/skribe)

.PHONY: do-distrib-jvm
do-distrib-jvm: lib bin lib/bigloo_s.zip
	$(RM) -f $(DISTRIBDIR)/skribe$(SKRIBERELEASE).zip
	(./configure --with-bigloo --jvm \
         && $(MAKE) \
         && cd .. \
	 && zip -qr $(ZFLAGS) $(DISTRIBDIR)/skribe$(SKRIBERELEASE).zip \
                skribe \
                -x "*~" \
                -x "*/bin/*-bigloo" \
                -x "*.class" \
                -x "*.o")

#*--- bigloo_s.zip ----------------------------------------------------*/
lib/bigloo_s.zip: lib
	cp $(FILDIR)/bigloo_s.zip $@

#*--- lib -------------------------------------------------------------*/
lib:
	mkdir -p lib

#*--- bin -------------------------------------------------------------*/
bin:
	mkdir -p bin

#*---------------------------------------------------------------------*/
#*    pop                                                              */
#*---------------------------------------------------------------------*/
.PHONY: pop

pop:
	@ echo $(POPULATION:%=etc/bigloo/%)
	@ (cd autoconf && $(MAKE) -s pop)

#*---------------------------------------------------------------------*/
#*    clean                                                            */
#*---------------------------------------------------------------------*/
.PHONY: clean distclean

clean:
	/bin/rm -f ../../lib/bigloo_s.zip

#*--- distclean -------------------------------------------------------*/
distclean:
	/bin/rm -f Makefile.skb
	/bin/rm -f ../../src/common/configure.scm