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

Diff of /papo/forms/Makefile

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

revision 1.6 by styxman, Fri Apr 25 22:48:24 2003 UTC revision 1.7 by styxman, Mon Apr 28 22:58:27 2003 UTC
# Line 1  Line 1 
1  Z2G = zot2gfd  Z2G = zot2gfd
2  NEB= neb --include-path './components:.'  NEB-INCLUDE-PATH='./components:.'
3    NEB= neb --include-path $(NEB-INCLUDE-PATH)
4    NEBDEP= nebdep --include-path $(NEB-INCLUDE-PATH)
5  TCS= tcs -f utf -t latin1  TCS= tcs -f utf -t latin1
6  INSTALL=ln -sf  INSTALL=ln -sf
7    
8  LIBDIR=${HOME}/public_perl  LIBDIR=${HOME}/public_perl
9    
10    NEBFILES= ownBranch.neb stockMaintenance.neb
11  ALL = country.gfd product_measure_type.gfd product_classification.gfd \  ALL = country.gfd product_measure_type.gfd product_classification.gfd \
12        ownBranch.gfd        ownBranch.gfd stockMaintenance.gfd
13    
14  PERL-COMPONENTS=components/PAPO.pm  PERL-COMPONENTS=components/PAPO.pm
15    
16  do-for-all=$(foreach item,$(2),$(call $(1),$(item)))  do-for-all=$(foreach item,$(2),$(call $(1),$(item)))
17    # do *not* remove that ';'
18  install-mod=${INSTALL} ${PWD}/$(1) ${LIBDIR}/$(shell basename $(1));  install-mod=${INSTALL} ${PWD}/$(1) ${LIBDIR}/$(shell basename $(1));
19    calc-deps=$(NEBDEP) $(1) > .depend;
20    
21  all: install-perl-components $(ALL)  all: .depend $(ALL)
22    
23  %.gfd: %.cfg ../zot/template.gfd  %.gfd: %.cfg ../zot/template.gfd
24          $(Z2G) $< > $@          $(Z2G) $< > $@ || rm $@
25    
26  %.gfd: %.neb  %.gfd: %.neb
27          $(NEB) $< | $(TCS) > $@          $(NEB) $< | $(TCS) > $@ || rm $@
28    
29  clean:  clean:
30          rm -f $(ALL)          rm -f $(ALL)
31    
32    distclean: clean
33            rm -f .dep
34    
35    install: install-perl-components
36    
37  install-perl-components:  install-perl-components:
38          $(call do-for-all,install-mod,${PERL-COMPONENTS})          $(call do-for-all,install-mod,${PERL-COMPONENTS})
39    
40    .depend: $(NEBFILES)
41            $(call calc-deps,$(NEBFILES))
42    
43    force-dep:
44            @ rm -f .depend
45            @ make .depend
46    
47    -include .depend

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

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