/[pub]/suikawiki/script/misc/plugins/Makefile
Suika

Diff of /suikawiki/script/misc/plugins/Makefile

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by wakaba, Sun Feb 8 08:49:05 2004 UTC revision 1.5 by wakaba, Fri Apr 30 06:01:46 2004 UTC
# Line 4  BIN = ../../bin/ Line 4  BIN = ../../bin/
4  PERL = perl -I$(LIB)  PERL = perl -I$(LIB)
5  PERLC = $(PERL) -c -w  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  MKPLUGIN2_PL = $(BIN)mkplugin2.pl
15  MKPLUGIN2 = $(PERL) $(MKPLUGIN2_PL)  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)  %.pm: %.wp2 $(MKPLUGIN2_PL)
25          $(MKPLUGIN2) $< > $@          $(MKPLUGIN2) $< > $@
26          $(PERLC) $@          $(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    

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24