History

Makefile: Use stamps for better build redundancy

Michael Aldridge committed 9 years ago

Commit e460df11 parent 9debeaf2 files · +6 −3Browse files

Unified · Split

2 files
  1. .gitignore +1 −0
  2. Makefile +5 −3
.gitignore+1−0
@@ -6,4 +6,5 @@ · 5 unmodified lines
6*.tar.gz6*.tar.gz
7xbps-cache7xbps-cache
8xbps-cachedir*8xbps-cachedir*
9stamps*
9!dracut/*/*.sh10!dracut/*/*.sh
Makefile+5−3
@@ -51,16 +51,18 @@ rootfs-all-print: · 50 unmodified lines
51 51
52void-%-ROOTFS-$(DATE).tar.xz: $(SCRIPTS)52void-%-ROOTFS-$(DATE).tar.xz: $(SCRIPTS)
53 $(SUDO) ./mkrootfs.sh $(XBPS_REPOSITORY) -x $(COMPRESSOR_THREADS) $*53 $(SUDO) ./mkrootfs.sh $(XBPS_REPOSITORY) -x $(COMPRESSOR_THREADS) $*
54 mkdir -p stamps
55 touch stamps/platformfs-$*-$(DATE)-stamp
54 56
55platformfs-all: rootfs-all $(ALL_PLATFORMFS)57platformfs-all: rootfs-all $(ALL_PLATFORMFS)
56 58
57platformfs-all-print:59platformfs-all-print:
58 @echo $(ALL_PLATFORMFS) | sed "s: :\n:g"60 @echo $(ALL_PLATFORMFS) | sed "s: :\n:g"
59 61
60void-%-PLATFORMFS-$(DATE).tar.xz: $(SCRIPTS) platformfs-%-helper62void-%-PLATFORMFS-$(DATE).tar.xz: $(SCRIPTS) stamps/platformfs-%-$(DATE)-stamp
61 $(SUDO) ./mkplatformfs.sh $(XBPS_REPOSITORY) -x $(COMPRESSOR_THREADS) $* void-$(shell ./lib.sh platform2arch $*)-ROOTFS-$(DATE).tar.xz63 $(SUDO) ./mkplatformfs.sh $(XBPS_REPOSITORY) -x $(COMPRESSOR_THREADS) $* void-$(shell ./lib.sh platform2arch $*)-ROOTFS-$(DATE).tar.xz
62 64
63platformfs-%-helper:65stamps/platformfs-%-$(DATE)-stamp:
64# This rule exists because you can't do the shell expansion in the66# This rule exists because you can't do the shell expansion in the
65# dependent rule resolution stage67# dependent rule resolution stage
66 $(MAKE) void-$(shell ./lib.sh platform2arch $*)-ROOTFS-$(DATE).tar.xz68 $(MAKE) void-$(shell ./lib.sh platform2arch $*)-ROOTFS-$(DATE).tar.xz
@@ -90,4 +92,4 @@ pxe-all-print: · 23 unmodified lines
90void-%-NETBOOT-$(DATE).tar.gz: $(SCRIPTS) void-%-ROOTFS-$(DATE).tar.xz92void-%-NETBOOT-$(DATE).tar.gz: $(SCRIPTS) void-%-ROOTFS-$(DATE).tar.xz
91 $(SUDO) ./mknet.sh void-$*-ROOTFS-$(DATE).tar.xz93 $(SUDO) ./mknet.sh void-$*-ROOTFS-$(DATE).tar.xz
92 94
93.PHONY: clean dist rootfs-all-print platformfs-all-print pxe-all-print platformfs-%-helper95.PHONY: clean dist rootfs-all-print platformfs-all-print pxe-all-print

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t