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