[Bio] / SubsystemEditor / Makefile Repository:
ViewVC logotype

Diff of /SubsystemEditor/Makefile

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

revision 1.1, Mon May 14 21:05:57 2007 UTC revision 1.8, Wed Jun 16 21:57:34 2010 UTC
# Line 24  Line 24 
24    
25  PERLCGISCRIPTS := $(subst .pl,,$(wildcard *.cgi))  PERLCGISCRIPTS := $(subst .pl,,$(wildcard *.cgi))
26    
27    PERL = $(shell sed -ne 's/^RTPERL=\(.*\)/\1/p' $(RTROOT)/config/RTConfig)
28    
29  PERL_LIB = $(wildcard *.pm) \  PERL_LIB = $(wildcard *.pm) \
30          $(wildcard WebPage/*.pm)          $(wildcard WebPage/*.pm)
31    
32  WEBPAGES := $(wildcard *.tmpl) \  WEBPAGES := $(wildcard *.tmpl) \
33          $(wildcard images/*.png) \          $(wildcard images/*.png) \
34          $(wildcard images/*.jpeg) \          $(wildcard images/*.jpeg) \
35          $(wildcard images/*.jpg) \          $(wildcard *.js) \
36          $(wildcard *.css)          $(wildcard *.css)
37    
38  INST_PERL_LIB = $(foreach var, $(PERL_LIB), $(libdir)/$(PKGNAME)/$(var))  INST_PERL_LIB = $(foreach var, $(PERL_LIB), $(libdir)/$(PKGNAME)/$(var))
# Line 44  Line 46 
46          @echo toolhdr $(TOOL_HDR)          @echo toolhdr $(TOOL_HDR)
47  bin:  bin:
48    
49  lib:    $(foreach var, $(PERLCGISCRIPTS), $(cgidir)/$(var)) copy_htaccess $(INST_PERL_LIB) $(foreach var, $(WEBPAGES), $(cgidir)/Html/$(var))  lib:    $(foreach var, $(PERLCGISCRIPTS), $(cgidir)/$(var)) copy_htaccess $(INST_PERL_LIB) $(foreach var, $(WEBPAGES), $(cgidir)/Html/$(var)) rights fix_web_perms
50    
51    fix_web_perms:
52    ifneq (,$(findstring public_html, $(cgidir)))
53            chmod go-w $(cgidir)
54    endif
55    
56    
57  htaccess_src = $(RTROOT)/config/all.htaccess  htaccess_src = $(RTROOT)/config/all.htaccess
58  htaccess_dst = $(cgidir)/.htaccess  htaccess_dst = $(cgidir)/.htaccess
# Line 67  Line 75 
75    
76  $(cgidir)/%: $(TOPDIR)/$(PKGNAME)/% $(TOOL_HDR)  $(cgidir)/%: $(TOPDIR)/$(PKGNAME)/% $(TOOL_HDR)
77          ( cat $(TOOL_HDR) $< > $@; chmod +x $@ )          ( cat $(TOOL_HDR) $< > $@; chmod +x $@ )
78    ifneq (,$(findstring public_html, $(cgidir)))
79            chmod go-w $@
80    endif
81    
82  $(cgidir)/Html/%: $(TOPDIR)/$(PKGNAME)/%  $(cgidir)/Html/%: $(TOPDIR)/$(PKGNAME)/%
83          cp -p $< $(cgidir)/Html/.          cp $< $(cgidir)/Html/.
84    
85    
86  #  #
# Line 90  Line 101 
101          if [ ! -d $$tgt_dir ] ; then \          if [ ! -d $$tgt_dir ] ; then \
102                  mkdir $$tgt_dir; \                  mkdir $$tgt_dir; \
103          fi          fi
104          cp -p  $< $@          cp  $< $@
105    
106    rights:

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

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3