1 |
Z2G = zot2gfd |
Z2G = zot2gfd |
2 |
|
NEB= neb --include-path './components:.' |
3 |
|
TCS= tcs -f utf -t latin1 |
4 |
|
INSTALL=ln -sf |
5 |
|
|
6 |
|
LIBDIR=${HOME}/public_perl |
7 |
|
|
8 |
ALL = country.gfd product_measure_type.gfd product_classification.gfd \ |
ALL = country.gfd product_measure_type.gfd product_classification.gfd \ |
9 |
own_branch.gfd |
ownBranch.gfd |
10 |
|
|
11 |
|
PERL-COMPONENTS=components/PAPO.pm |
12 |
|
|
13 |
|
do-for-all=$(foreach item,$(2),$(call $(1),$(item))) |
14 |
|
install-mod=${INSTALL} ${PWD}/$(1) ${LIBDIR}/$(shell basename $(1)); |
15 |
|
|
16 |
all: $(ALL) |
all: install-perl-components $(ALL) |
17 |
|
|
18 |
%.gfd: %.cfg ../zot/template.gfd |
%.gfd: %.cfg ../zot/template.gfd |
19 |
$(Z2G) $< > $@ |
$(Z2G) $< > $@ |
20 |
|
|
21 |
|
%.gfd: %.neb |
22 |
|
$(NEB) $< | $(TCS) > $@ |
23 |
|
|
24 |
clean: |
clean: |
25 |
rm -f $(ALL) |
rm -f $(ALL) |
26 |
|
|
27 |
|
install-perl-components: |
28 |
|
$(call do-for-all,install-mod,${PERL-COMPONENTS}) |