1 |
wakaba |
1.1 |
LS = ls |
2 |
|
|
MAKE = make |
3 |
wakaba |
1.3 |
RM = rm |
4 |
wakaba |
1.1 |
SED = sed |
5 |
|
|
XARGS = xargs |
6 |
|
|
|
7 |
wakaba |
1.2 |
PERL = perl -I../../ |
8 |
wakaba |
1.3 |
PERL_CHK = $(PERL) -c -w |
9 |
wakaba |
1.1 |
|
10 |
wakaba |
1.5 |
DIS2PM_PL = ../../../bin/dis2pm.pl |
11 |
wakaba |
1.1 |
DIS2PM = $(PERL) $(DIS2PM_PL) |
12 |
wakaba |
1.6 |
DIS2POD_PL = ../../../bin/dis2pm.pl |
13 |
|
|
DIS2POD = $(PERL) $(DIS2POD_PL) --output-pod=only |
14 |
wakaba |
1.1 |
|
15 |
wakaba |
1.2 |
IDL2DIS_PL = idl2dis.pl |
16 |
|
|
IDL2DIS = $(PERL) $(IDL2DIS_PL) |
17 |
|
|
|
18 |
wakaba |
1.1 |
all: dom-modules |
19 |
|
|
|
20 |
wakaba |
1.4 |
dom-modules: ManakaiDOMMain.pm DOMMain.pm DOMCore.pm ManakaiDOMCore.pm |
21 |
wakaba |
1.1 |
$(LS) *.dis | $(SED) s/\.dis/.pm/ | $(XARGS) $(MAKE) |
22 |
|
|
|
23 |
|
|
%.pm: %.dis $(DIS2PM_PL) |
24 |
wakaba |
1.6 |
$(DIS2PM) --output-pod=file --output-pod-file=$(@:.pm=.pod) $< > $@ |
25 |
wakaba |
1.1 |
$(PERL_CHK) $@ |
26 |
wakaba |
1.6 |
|
27 |
|
|
%.pod: %.dis $(DIS2POD_PL) |
28 |
|
|
$(DIS2POD) $< > $@ |
29 |
wakaba |
1.2 |
|
30 |
wakaba |
1.3 |
clean: |
31 |
|
|
$(LS) *.dis | $(SED) s/\.dis/.pm/ | $(XARGS) $(RM) |
32 |
wakaba |
1.2 |
|