1 |
LIB = ../../lib/ |
2 |
BIN = ../../bin/ |
3 |
|
4 |
PERL = perl -I$(LIB) |
5 |
PERLC = $(PERL) -c -w |
6 |
|
7 |
CD = cd |
8 |
LS = ls |
9 |
MAKE = make |
10 |
RM = rm -fv |
11 |
SED = sed |
12 |
XARGS = xargs |
13 |
|
14 |
MKPLUGIN2_PL = $(BIN)mkplugin2.pl |
15 |
MKPLUGIN2 = $(PERL) $(MKPLUGIN2_PL) |
16 |
|
17 |
all: |
18 |
$(LS) *.wp2 | $(SED) s/\.wp2/.pm/ | $(XARGS) $(MAKE) |
19 |
$(CD) form && $(MAKE) all |
20 |
$(CD) format && $(MAKE) all |
21 |
$(CD) link && $(MAKE) all |
22 |
$(CD) view && $(MAKE) all |
23 |
|
24 |
%.pm: %.wp2 $(MKPLUGIN2_PL) |
25 |
$(MKPLUGIN2) $< > $@ |
26 |
$(PERLC) $@ |
27 |
|
28 |
clean: |
29 |
$(RM) *.pm |
30 |
$(RM) *~ *.BAK .*~ .*.BAK |
31 |
$(CD) form && $(MAKE) clean |
32 |
$(CD) format && $(MAKE) clean |
33 |
$(CD) link && $(MAKE) clean |
34 |
$(CD) view && $(MAKE) clean |
35 |
|
36 |
distclean: clean |
37 |
|