/[papo]/papo/forms/Makefile
ViewVC logotype

Diff of /papo/forms/Makefile

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

revision 1.23 by styxman, Fri May 23 18:42:17 2003 UTC revision 1.24 by jlenton, Tue May 27 22:22:49 2003 UTC
# Line 4  NEB= neb --verbose --extension ulam --in Line 4  NEB= neb --verbose --extension ulam --in
4  NEBDEP= $(NEB) -MM  NEBDEP= $(NEB) -MM
5  TCS= tcs -f utf -t latin1  TCS= tcs -f utf -t latin1
6  LAM= lam --verbose --extension ugfd  LAM= lam --verbose --extension ugfd
7    EMF=emf -z=../zot/PAPO-ER.zot
8  LAMDEP= $(LAM) -MM  LAMDEP= $(LAM) -MM
9  INSTALL=ln -sf  VERSION_CONTROL=t
10  PWD=$(shell pwd)  INSTALL=ln -sfb
11    ZOTFILE=../zot/PAPO-ER.zot
12    
13  LIBDIR=${HOME}/public_perl  LIBDIR=${HOME}/public_perl
14    
# Line 51  NEBFILES= ownBranch.neb                                \ Line 53  NEBFILES= ownBranch.neb                                \
53            serviceInvoice.neb                    \            serviceInvoice.neb                    \
54            serviceProviderInvoice.neb            \            serviceProviderInvoice.neb            \
55            transportSelect.neb                   \            transportSelect.neb                   \
56            voidInvoice.neb            voidInvoice.neb                       \
57              country.neb
58    
59  INTERMEDIATE=$(NEBFILES:%.neb=%.ulam) $(NEBFILES:%.neb=%.lam) $(NEBFILES:%.neb=%.ugfd)  INTERMEDIATE=$(NEBFILES:%.neb=%.ulam) $(NEBFILES:%.neb=%.lam) $(NEBFILES:%.neb=%.ugfd)
60    
 # missing: cfg->gfd files (broken for now)  
61  ALL = $(NEBFILES:%.neb=%.gfd)  ALL = $(NEBFILES:%.neb=%.gfd)
62    
63  PERL-COMPONENTS=components/PAPO.pm  PERL-COMPONENTS=components/PAPO.pm
64    
 # left here for future refererenenrence  
 #  
 do-for-all=$(foreach item,$(2),$(call $(1),$(item)))  
 ## do *not* remove that ';'  
 install-mod=${INSTALL} ${PWD}/$(1) ${LIBDIR}/$(shell basename $(1));  
 #calc-deps=$(NEBDEP) $(1) > .depend;  
 # /  
   
65  all: $(ALL)  all: $(ALL)
66    
67  %.ulam: %.neb  %.ulam: %.neb
# Line 76  all: $(ALL) Line 70  all: $(ALL)
70  %.lam: %.ulam  %.lam: %.ulam
71          $(TCS) $< > $@          $(TCS) $< > $@
72    
73  %.ugfd: %.lam  %.emf: %.lam
74            $(EMF) $< > $@
75    
76    %.ugfd: %.emf
77          $(LAM) $<          $(LAM) $<
78    
79  %.gfd: %.ugfd  %.gfd: %.ugfd
80          $(TCS) $< > $@          $(TCS) $< > $@
81    
82  %.gfd: %.cfg  %.gfd: %.cfg
83          $(Z2G) $< > $@          $(error Do that again and I'll scream)
84    
85  .deps/%.dep: %.neb  .deps/%.dep: %.neb
86          $(NEBDEP) $<  > $@          $(NEBDEP) $<  > $@
# Line 93  all: $(ALL) Line 90  all: $(ALL)
90    
91  .DELETE_ON_ERROR:  .DELETE_ON_ERROR:
92    
93    .EXPORT_ALL_VARIABLES:
94    
95  clean:  clean:
96          rm -f $(ALL) $(INTERMEDIATE)          rm -f $(ALL) $(INTERMEDIATE)
97    
98  distclean: clean  distclean: clean
         # fix  
99          rm -f .dep .*.dep .depend *~          rm -f .dep .*.dep .depend *~
100            rm -rf .deps
101    
102  install: install-perl-components  install: install-perl-components
103    
104  install-perl-components: $(PERL-COMPONENTS)  install-perl-components: $(PERL-COMPONENTS:%=$(PWD)/%)
105          # $(INSTALL) --target-dir=$(LIBDIR) $^          $(INSTALL) $^ $(LIBDIR)
106          $(call do-for-all,install-mod,$(PERL-COMPONENTS))  
107    .deps:
108            mkdir -p $@
109    
110  .deps/all-deps: $(NEBFILES:%.neb=.deps/%.dep)  .deps/all-deps: .deps $(NEBFILES:%.neb=.deps/%.dep)
111          cat $^ > $@          cat $(wordlist 2, $(words $^), $^) > $@
112    
113  force-dep:  force-dep:
114          @ rm -f .depend          @ rm -f .depend

Legend:
Removed from v.1.23  
changed lines
  Added in v.1.24

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26