git://git.onelab.eu
/
build.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7803898
)
export more stuff from rpmspecfile to debian
author
Thierry Parmentelat
<thierry.parmentelat@inria.fr>
Fri, 26 Apr 2013 07:53:21 +0000
(09:53 +0200)
committer
Thierry Parmentelat
<thierry.parmentelat@inria.fr>
Fri, 26 Apr 2013 07:53:21 +0000
(09:53 +0200)
Makefile
patch
|
blob
|
history
diff --git
a/Makefile
b/Makefile
index
98b5423
..
602949d
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-660,11
+660,13
@@
$(foreach package,$(ALL),$(eval $(call target_depends,$(package))))
####################
# very rough for now (one module per package), targets only sfa for now
####################
# very rough for now (one module per package), targets only sfa for now
+# the general idea here is, changing the specfile (for version number and all) is enough, and this
+# gets passed to "make debian" in the module
define target_debian
$(1)-debian: $(1)-tarball
mkdir -p DEBIAN/$(1)
rsync -a MODULES/$(1)/ DEBIAN/$(1)/
define target_debian
$(1)-debian: $(1)-tarball
mkdir -p DEBIAN/$(1)
rsync -a MODULES/$(1)/ DEBIAN/$(1)/
- make -C DEBIAN/$(1)
"TARBALL=$(HOME)/$($(1).tarballs)" debian
+ make -C DEBIAN/$(1)
debian "TARBALL=$(HOME)/$($(1).tarballs)" "VERSION=$($(1).rpm-release)" "RELEASE=$($(1).rpm-release)" "NAME=$($(1).rpm-name)"
endef
$(foreach package,$(ALL),$(eval $(call target_debian,$(package))))
endef
$(foreach package,$(ALL),$(eval $(call target_debian,$(package))))