[Bio] / Wiki / Makefile Repository:
ViewVC logotype

Diff of /Wiki/Makefile

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

revision 1.1, Thu Feb 7 00:40:20 2008 UTC revision 1.2, Thu Feb 7 01:50:06 2008 UTC
# Line 21  Line 21 
21  # if it is not.  # if it is not.
22  #  #
23    
 PERL_LIB = \  
     $(wildcard lib/*.pm) \  
     $(wildcard lib/TWiki/*.pm) \  
     $(wildcard lib/TWiki/Users/*.pm) \  
     $(wildcard lib/TWiki/UI/*.pm) \  
     $(wildcard lib/TWiki/Store/*.pm) \  
     $(wildcard lib/TWiki/Store/SearchAlgorithms/*.pm) \  
     $(wildcard lib/TWiki/Prefs/*.pm) \  
     $(wildcard lib/TWiki/Plugins/*.pm) \  
     $(wildcard lib/TWiki/Plugins/WysiwygPlugin/*.pm) \  
     $(wildcard lib/TWiki/Plugins/WysiwygPlugin/HTML2TML/*.pm) \  
     $(wildcard lib/TWiki/Plugins/TWikiDrawPlugin/*.pm) \  
     $(wildcard lib/TWiki/Plugins/TablePlugin/*.pm) \  
     $(wildcard lib/TWiki/Plugins/SpreadSheetPlugin/*.pm) \  
     $(wildcard lib/TWiki/Plugins/SlideShowPlugin/*.pm) \  
     $(wildcard lib/TWiki/Plugins/PodPlugin/*.pm) \  
     $(wildcard lib/TWiki/Plugins/NmpdrPlugin/*.pm) \  
     $(wildcard lib/TWiki/Plugins/EditTablePlugin/*.pm) \  
     $(wildcard lib/TWiki/Plugins/CommentPlugin/*.pm) \  
     $(wildcard lib/TWiki/I18N/*.pm) \  
     $(wildcard lib/TWiki/Data/*.pm) \  
     $(wildcard lib/TWiki/Contrib/*.pm) \  
     $(wildcard lib/TWiki/Contrib/MailerContrib/*.pm) \  
     $(wildcard lib/TWiki/Configure/*.pm) \  
     $(wildcard lib/TWiki/Configure/UIs/*.pm) \  
     $(wildcard lib/TWiki/Configure/Types/*.pm) \  
     $(wildcard lib/TWiki/Configure/Checkers/*.pm) \  
     $(wildcard lib/TWiki/Configure/Checkers/Site/*.pm) \  
     $(wildcard lib/TWiki/Configure/Checkers/Sessions/*.pm) \  
     $(wildcard lib/TWiki/Configure/Checkers/RCS/*.pm) \  
     $(wildcard lib/TWiki/Configure/Checkers/Htpasswd/*.pm) \  
     $(wildcard lib/TWiki/Client/*.pm) \  
     $(wildcard lib/Output/*.pm) \  
     $(wildcard lib/HFile/*.pm) \  
     $(wildcard lib/CPAN/*.pm) \  
     $(wildcard lib/CPAN/lib/*.pm) \  
     $(wildcard lib/CPAN/lib/Text/*.pm) \  
     $(wildcard lib/CPAN/lib/Pod/*.pm) \  
     $(wildcard lib/CPAN/lib/Pod/Simple/*.pm) \  
     $(wildcard lib/CPAN/lib/Pod/Simple/Wiki/*.pm) \  
     $(wildcard lib/CPAN/lib/Parse/*.pm) \  
     $(wildcard lib/CPAN/lib/Locale/*.pm) \  
     $(wildcard lib/CPAN/lib/Locale/Maketext/*.pm) \  
     $(wildcard lib/CPAN/lib/Locale/Maketext/Lexicon/*.pm) \  
     $(wildcard lib/CPAN/lib/Locale/Maketext/Extract/*.pm) \  
     $(wildcard lib/CPAN/lib/Algorithm/*.pm) \  
     $(wildcard lib/Beautifier/*.pm)  
   
 PERL_SERVICES = \  
     $(wildcard bin/*.cgi) \  
     $(wildcard bin/*.cfg)  
   
 PERL_DATA = \  
     $(wildcard locale/*.*) \  
     $(wildcard templates/*.*)  
   
 PERL_SCRIPTS = \  
     $(wildcard tools/*.pl)  
   
24  all: lib  all: lib
25    
26  lib: lib_pm data_files htaccess_files services_cgi  lib:
27    
28  lib_pm: $(foreach var, $(PERL_LIB), $(libdir)/$(PKGNAME)/$(var))  lib_pm:
29    
30  services_cgi: $(foreach var, $(PERL_SERVICES), $(subst bin/,,$(cgidir)/wiki/$(var)))  services_cgi:
31    
32  data_files: $(foreach var, $(PERL_DATA), $(cgidir)/wiki/$(var))  data_files:
33    
34  scripts: $(foreach var, $(PERL_SCRIPTS), $(subst .pl,,$(subst tools/,,$(bindir)/$(var))))  scripts:
35    
36  show:  show:
         @echo over $(OVERRIDES)  
         @echo cgis $(cgidir)  
         @echo top $(TOPDIR)  
         @echo pkg $(PKGNAME)  
         @echo toolhdr $(TOOL_HDR)  
37    
38  bin:  bin:
39    
40  htaccess_files: $(cgidir)/wiki/.htaccess $(cgidir)/wiki/.htpasswd \  htaccess_files:
                 $(cgidir)/wiki/LocalLib.cfg $(cgidir)/wiki/setlib.cfg \  
                 $(libdir)/Wiki/lib/TWiki.spec $(libdir)/Wiki/lib/DEPENDENCIES \  
                 $(libdir)/Wiki/lib/LocalSite.cfg $(cgidir)/wiki/pub/.htaccess  
41    
42  force:  force:
43    
# Line 118  Line 51 
51    
52  clean:  clean:
53    
 $(cgidir)/wiki/.htaccess: $(TOPDIR)/$(PKGNAME)/bin/txt.htaccess  
         cp $< $@  
   
 $(cgidir)/wiki/.htpasswd: $(TOPDIR)/$(PKGNAME)/bin/txt.htpasswd  
         cp $< $@  
   
 $(cgidir)/wiki/pub/.htaccess: $(TOPDIR)/$(PKGNAME)/bin/pub.htaccess  
         cp $< $@  
   
 $(cgidir)/wiki/%.tmpl: $(TOPDIR)/$(PKGNAME)/%.tmpl  
         cp $< $@  
   
 $(cgidir)/wiki/locale/%: $(TOPDIR)/$(PKGNAME)/locale/%  
         cp $< $@  
   
 $(cgidir)/wiki/%.cgi: $(TOPDIR)/$(PKGNAME)/bin/%.cgi $(TOOL_HDR)  
         ( cat $(TOOL_HDR) $< > $@; chmod +x $@ )  
   
 $(bindir)/%: $(TOPDIR)/$(PKGNAME)/%.pl $(TOOL_HDR)  
         -test -f $@ && mv $@ $@.del  
         ( cat $(TOOL_HDR) $< > $@; chmod +x $@ )  
         -test -f $@.del && rm -f $@.del  
   
 $(cgidir)/wiki/%.cfg: $(TOPDIR)/$(PKGNAME)/bin/%.cfg  
         cp  $< $@  
   
 $(libdir)/$(PKGNAME)/%.pm: $(TOPDIR)/$(PKGNAME)/%.pm  
         cp  $< $@  
   
 $(libdir)/$(PKGNAME)/lib/%.spec: $(TOPDIR)/$(PKGNAME)/lib/%.spec  
         cp  $< $@  
   
 $(libdir)/$(PKGNAME)/lib/%.cfg: $(TOPDIR)/$(PKGNAME)/lib/%.cfg  
         cp  $< $@  
   
 $(libdir)/$(PKGNAME)/lib/DEPENDENCIES: $(TOPDIR)/$(PKGNAME)/lib/DEPENDENCIES  
         cp  $< $@  
   

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3