Changeset 4611094f in mainline for release/Makefile
- Timestamp:
- 2011-03-20T19:09:19Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- cfbcd86
- Parents:
- 8c76c30 (diff), 7308e84 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
release/Makefile
r8c76c30 r4611094f 28 28 29 29 -include ../version 30 -include ../Makefile.config 31 -include ../boot/arch/$(BARCH)/Makefile.inc 32 -include ../boot/Makefile.common 30 31 EXPORT_DIR = /var/tmp/helenos/HelenOS-$(RELEASE) 32 SRC_ARCHIVE = HelenOS-$(RELEASE).tar.bz2 33 33 34 34 PROFILES = amd64 arm32/GXemul arm32/integratorcp arm32/gta02 ia32 \ … … 36 36 sparc64/serengeti sparc64/ultra 37 37 38 BZR = bzr 39 TAR = tar 40 41 # To determine IMG_FILE 42 -include $(EXPORT_DIR)/Makefile.config 43 -include $(EXPORT_DIR)/boot/arch/$(BARCH)/Makefile.inc 44 -include $(EXPORT_DIR)/boot/Makefile.common 45 38 46 ifdef POST_OUTPUT 39 IMG FILE =$(POST_OUTPUT)47 IMG_FILE = $(EXPORT_DIR)/boot/$(POST_OUTPUT) 40 48 else 41 IMG FILE =$(BOOT_OUTPUT)49 IMG_FILE = $(EXPORT_DIR)/boot/$(BOOT_OUTPUT) 42 50 endif 43 51 44 SUFFIX = $(suffix $(IMG FILE))52 SUFFIX = $(suffix $(IMG_FILE)) 45 53 46 54 ifdef PROFILE 47 DISTFILE = Helenos-$(shell echo $(PROFILE) | tr '/' '-')$(SUFFIX)55 RELEASE_FILE = HelenOS-$(RELEASE)-$(shell echo $(PROFILE) | tr '/' '-')$(SUFFIX) 48 56 else 49 DISTFILE = HelenOS-$(RELEASE)-$(PLATFORM)-$(MACHINE)-$(PROCESSOR)$(SUFFIX)57 RELEASE_FILE = HelenOS-$(RELEASE)-$(PLATFORM)-$(MACHINE)-$(PROCESSOR)$(SUFFIX) 50 58 endif 51 59 52 .PHONY: all clean dist distfile60 .PHONY: all clean release releasefile export src_rel 53 61 54 all: distfile55 distfile: $(DISTFILE)62 all: releasefile 63 releasefile: $(RELEASE_FILE) 56 64 57 $( DISTFILE): $(IMGFILE)65 $(RELEASE_FILE): $(IMG_FILE) 58 66 cp $< $@ 59 67 60 $(IMG FILE):61 $(MAKE) -C ..68 $(IMG_FILE): 69 $(MAKE) -C $(EXPORT_DIR) 62 70 63 dist: 71 release: src_rel 64 72 for profile in $(PROFILES); do \ 65 $(MAKE) -C .. clean ; \ 66 $(MAKE) -C .. PROFILE=$$profile distfile ; \ 73 $(MAKE) -C $(EXPORT_DIR) clean ; \ 74 $(MAKE) -C $(EXPORT_DIR) PROFILE=$$profile ; \ 75 $(MAKE) PROFILE=$$profile releasefile ; \ 67 76 done 68 77 78 $(EXPORT_DIR) export: 79 rm -rf $(EXPORT_DIR) 80 mkdir -p $(EXPORT_DIR) 81 $(BZR) export $(EXPORT_DIR) 82 83 src_rel $(SRC_ARCHIVE): export 84 $(TAR) -C $(shell dirname $(EXPORT_DIR)) \ 85 -cjf $(SRC_ARCHIVE) $(shell basename $(EXPORT_DIR)) 86 69 87 clean: 70 rm -f $( DISTFILE)88 rm -f $(RELEASE_FILE)
Note:
See TracChangeset
for help on using the changeset viewer.