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
66 *.tar.gz
77 xbps-cache
88 xbps-cachedir*
9+stamps*
910 !dracut/*/*.sh
Makefile+5−3
@@ -51,16 +51,18 @@ rootfs-all-print: · 50 unmodified lines
5151
5252 void-%-ROOTFS-$(DATE).tar.xz: $(SCRIPTS)
5353 $(SUDO) ./mkrootfs.sh $(XBPS_REPOSITORY) -x $(COMPRESSOR_THREADS) $*
54+ mkdir -p stamps
55+ touch stamps/platformfs-$*-$(DATE)-stamp
5456
5557 platformfs-all: rootfs-all $(ALL_PLATFORMFS)
5658
5759 platformfs-all-print:
5860 @echo $(ALL_PLATFORMFS) | sed "s: :\n:g"
5961
60−void-%-PLATFORMFS-$(DATE).tar.xz: $(SCRIPTS) platformfs-%-helper
62+void-%-PLATFORMFS-$(DATE).tar.xz: $(SCRIPTS) stamps/platformfs-%-$(DATE)-stamp
6163 $(SUDO) ./mkplatformfs.sh $(XBPS_REPOSITORY) -x $(COMPRESSOR_THREADS) $* void-$(shell ./lib.sh platform2arch $*)-ROOTFS-$(DATE).tar.xz
6264
63−platformfs-%-helper:
65+stamps/platformfs-%-$(DATE)-stamp:
6466 # This rule exists because you can't do the shell expansion in the
6567 # dependent rule resolution stage
6668 $(MAKE) void-$(shell ./lib.sh platform2arch $*)-ROOTFS-$(DATE).tar.xz
@@ -90,4 +92,4 @@ pxe-all-print: · 23 unmodified lines
9092 void-%-NETBOOT-$(DATE).tar.gz: $(SCRIPTS) void-%-ROOTFS-$(DATE).tar.xz
9193 $(SUDO) ./mknet.sh void-$*-ROOTFS-$(DATE).tar.xz
9294
93−.PHONY: clean dist rootfs-all-print platformfs-all-print pxe-all-print platformfs-%-helper
95+.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