LIB = ../../lib/ BIN = ../../bin/ PERL = perl -I$(LIB) PERLC = $(PERL) -c -w CD = cd LS = ls MAKE = make RM = rm -fv SED = sed XARGS = xargs MKPLUGIN2_PL = $(BIN)mkplugin2.pl MKPLUGIN2 = $(PERL) $(MKPLUGIN2_PL) all: $(LS) *.wp2 | $(SED) s/\.wp2/.pm/ | $(XARGS) $(MAKE) $(CD) form && $(MAKE) all $(CD) format && $(MAKE) all $(CD) link && $(MAKE) all $(CD) view && $(MAKE) all %.pm: %.wp2 $(MKPLUGIN2_PL) $(MKPLUGIN2) $< > $@ $(PERLC) $@ clean: $(RM) *.pm $(RM) *~ *.BAK .*~ .*.BAK $(CD) form && $(MAKE) clean $(CD) format && $(MAKE) clean $(CD) link && $(MAKE) clean $(CD) view && $(MAKE) clean distclean: clean