aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 918e91ae35f3300a8dfb10aa4bb42ac34d316410 (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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
#*=====================================================================*/
#*    serrano/prgm/project/skribe/Makefile                             */
#*    -------------------------------------------------------------    */
#*    Author      :  Manuel Serrano                                    */
#*    Creation    :  Wed Jul 30 16:23:07 2003                          */
#*    Last change :  Fri May 21 16:37:53 2004 (serrano)                */
#*    Copyright   :  2003-04 Manuel Serrano                            */
#*    -------------------------------------------------------------    */
#*    The general Skribe makefile                                      */
#*=====================================================================*/
include etc/Makefile.config

#*---------------------------------------------------------------------*/
#*    DIRECTORIES                                                      */
#*---------------------------------------------------------------------*/
DIRECTORIES	= skr \
		  doc \
		  examples \
		  src \
		  emacs \
		  etc \
		  tools

POPULATIONDIRS	= $(DIRECTORIES) \
                  contribs

#*---------------------------------------------------------------------*/
#*    all                                                              */
#*---------------------------------------------------------------------*/
.PHONY: all

all:
	(cd src/$(SYSTEM) && $(MAKE))
	(cd tools && $(MAKE))
	(cd doc && $(MAKE))

#*---------------------------------------------------------------------*/
#*    install                                                          */
#*---------------------------------------------------------------------*/
.PHONY: install uninstall

install:
	for d in $(DIRECTORIES); do \
           (cd $$d && $(MAKE) install) || exit -1; \
        done

uninstall:
	for d in $(DIRECTORIES); do \
           (cd $$d && $(MAKE) uninstall) || exit -1; \
        done

#*---------------------------------------------------------------------*/
#*    revision                                                         */
#*---------------------------------------------------------------------*/
.PHONY: revision populate skribe.prj

revision: populate checkin

populate: skribe.prj
	prcs populate skribe `$(MAKE) pop`

checkin:
	prcs checkin -r$(SKRIBERELEASE).@ skribe

checkout:
	@ prcs checkout -r$(SKRIBERELEASE).@ skribe

skribe.prj:
	@ cat skribe.prj | sed -e s,"(Populate-Ignore ())","(Populate-Ignore (\"\\\\\\\\\\.o\\$$\" \"\\\\\\\\\\~$$\" \"\\\\\\\\\\.log\\$$\" \"\\\\\\\\\\.ps\\$$\" \"\\\\\\\\\\.aux\\$$\" \"\\\\\\\\\\.date_of_backup\\$$\" \"\\\\\\\\\\.so\\$$\" \"\\\\\\\\\\.a\\$$\" \"if_not_there\\$$\" \"if_mach\\$$\" \"threadlibs\\$$\"))", > skribe.dprj; $(RM) -f skribe.prj; mv skribe.dprj skribe.prj

#*---------------------------------------------------------------------*/
#*    population                                                       */
#*    -------------------------------------------------------------    */
#*    The list of all files that have to be placed inside the          */
#*    repository for revision.                                         */
#*---------------------------------------------------------------------*/
.PHONY: subpop popfilelist

subpop:
	@ for d in $(POPULATIONDIRS); do \
             (cd $$d && $(MAKE) -s pop); \
          done

pop:
	@ echo Makefile INSTALL LICENSE README README.java
	@ echo configure
	@ (for p in `$(MAKE) -s subpop`; do \
            echo $$p; \
           done) | sort

#*---------------------------------------------------------------------*/
#*    distrib                                                          */
#*---------------------------------------------------------------------*/
.PHONY: distrib distrib-jvm distrib-src

distrib:
	$(MAKE) distrib -f etc/$(SYSTEM)/Makefile -I etc/$(SYSTEM)
	(cd www && $(MAKE))

distrib-jvm:
	$(MAKE) distrib-jvm -f etc/$(SYSTEM)/Makefile -I etc/$(SYSTEM)

distrib-src:
	$(MAKE) distrib-src -f etc/$(SYSTEM)/Makefile -I etc/$(SYSTEM)

#*---------------------------------------------------------------------*/
#*    clean/distclean                                                  */
#*---------------------------------------------------------------------*/
.PHONY: clean distclean
	$(RM) -f etc/Makefile.config

clean:
	(cd src && $(MAKE) clean)
	(cd doc && $(MAKE) clean)
	(cd tools && $(MAKE) clean)
	(cd etc && $(MAKE) clean)

distclean: clean
	(cd emacs && $(MAKE) distclean)
	(cd etc && $(MAKE) distclean)

#*---------------------------------------------------------------------*/
#*    devclean/devdistclean                                            */
#*---------------------------------------------------------------------*/
.PHONY: devclean devdistclean

devclean: clean
	(cd www && $(MAKE) clean)

devdistclean: devclean distclean