summaryrefslogtreecommitdiff
path: root/Makefile.d/build-release.mk
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.d/build-release.mk')
-rw-r--r--Makefile.d/build-release.mk53
1 files changed, 53 insertions, 0 deletions
diff --git a/Makefile.d/build-release.mk b/Makefile.d/build-release.mk
new file mode 100644
index 0000000..09c0808
--- /dev/null
+++ b/Makefile.d/build-release.mk
@@ -0,0 +1,53 @@
+
+dist_utils = \
+ bucts \
+ flashrom_normal \
+ flashrom_lenovobios_macronix \
+ flashrom_lenovobios_sst \
+ cbfstool \
+ nvramtool
+dist_files = \
+ $(MAKEFILE_LIST) \
+ configure configure.ac \
+ tmp/.gitignore \
+ powertop.trisquel6 \
+ powertop.trisquel6.init \
+ powertop.trisquel7 \
+ powertop.trisquel7.init \
+ deps-trisquel \
+ flash_lenovobios_stage1 \
+ flash_lenovobios_stage2 \
+ flash_libreboot6 \
+ flash_macbook21applebios \
+ flash_x60_libreboot5
+dist_dirs = docs bin resources
+
+distdir: PHONY \
+ libreboot-$(VERSION)/version.txt \
+ $(addprefix libreboot-$(VERSION)/utils/$(arch)/,$(dist_utils)) \
+ $(addprefix libreboot-$(VERSION)/,$(dist_files) $(dist_dirs))
+
+libreboot-$(VERSION)/utils/$(arch)/bucts: src/bucts/bucts
+ mkdir -p $(@D)
+ cp $< $@
+libreboot-$(VERSION)/utils/$(arch)/flashrom_%: src/flashrom/flashrom_%
+ mkdir -p $(@D)
+ cp $< $@
+libreboot-$(VERSION)/utils/$(arch)/cbfstool: src/coreboot/util/cbfstool/cbfstool
+ mkdir -p $(@D)
+ cp $< $@
+libreboot-$(VERSION)/utils/$(arch)/nvramtool: src/coreboot/util/nvramtool/nvramtool
+ mkdir -p $(@D)
+ cp $< $@
+$(addprefix libreboot-$(VERSION)/,$(dist_files)): \
+libreboot-$(VERSION)/%: %
+ mkdir -p $(@D)
+ cp $< $@
+$(addprefix libreboot-$(VERSION)/,$(dist_dirs)): \
+libreboot-$(VERSION)/%: %
+ mkdir -p $(@D)
+ cp -r $< $@
+
+libreboot-$(VERSION)/version.txt: PHONY
+ mkdir -p $(@D)
+ echo $(VERSION) > $@