define target_spec
$($(1)_specpath):
mkdir -p SPECS
- echo "%define pldistro $(PLDISTRO)" > $($(1)_specpath)
+ (echo -n "# Generated by planetlab build from $($(1)-SPEC) on " ; date) > $($(1)_specpath)
+ echo "%define distroname $(DISTRO)" >> $($(1)_specpath)
+ echo "%define distrorelease $(RELEASE)" >> $($(1)_specpath)
+ echo "%define pldistro $(PLDISTRO)" >> $($(1)_specpath)
$(if $($(1)_hasdate),echo "%define date $(shell date +%Y.%m.%d)" >> $($(1)_specpath),)
+ echo "# included from codebase specfile" >> $($(1)_specpath)
$(if $($(1)-SPECVARS), \
$(foreach line,$($(1)-SPECVARS), \
echo "%define" $(word 1,$(subst =, ,$(line))) "$(word 2,$(subst =, ,$(line)))" >> $($(1)_specpath) ;))
#
netflow-MODULES := PlanetFlow
netflow-SPEC := netflow.spec
-netflow-SPECVARS := distroname=$(DISTRO) distrorelease=$(RELEASE)
ALL += netflow
#
#
myplc-devel-native-MODULES := MyPLC
myplc-devel-native-SPEC := myplc-devel-native.spec
-myplc-devel-native-SPECVARS := distroname=$(DISTRO) distrorelease=$(RELEASE)
#ALL += myplc-devel-native