Changeset 471569b in mainline for release/Makefile
- Timestamp:
- 2011-03-16T22:09:28Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 406d514
- Parents:
- aede651
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
release/Makefile
raede651 r471569b 39 39 TAR = tar 40 40 41 # To determine IMG FILE41 # To determine IMG_FILE 42 42 -include $(EXPORT_DIR)/Makefile.config 43 43 -include $(EXPORT_DIR)/boot/arch/$(BARCH)/Makefile.inc … … 45 45 46 46 ifdef POST_OUTPUT 47 IMG FILE = $(EXPORT_DIR)/boot/$(POST_OUTPUT)47 IMG_FILE = $(EXPORT_DIR)/boot/$(POST_OUTPUT) 48 48 else 49 IMG FILE = $(EXPORT_DIR)/boot/$(BOOT_OUTPUT)49 IMG_FILE = $(EXPORT_DIR)/boot/$(BOOT_OUTPUT) 50 50 endif 51 51 52 SUFFIX = $(suffix $(IMG FILE))52 SUFFIX = $(suffix $(IMG_FILE)) 53 53 54 54 ifdef PROFILE 55 DISTFILE = HelenOS-$(RELEASE)-$(shell echo $(PROFILE) | tr '/' '-')$(SUFFIX)55 RELEASE_FILE = HelenOS-$(RELEASE)-$(shell echo $(PROFILE) | tr '/' '-')$(SUFFIX) 56 56 else 57 DISTFILE = HelenOS-$(RELEASE)-$(PLATFORM)-$(MACHINE)-$(PROCESSOR)$(SUFFIX)57 RELEASE_FILE = HelenOS-$(RELEASE)-$(PLATFORM)-$(MACHINE)-$(PROCESSOR)$(SUFFIX) 58 58 endif 59 59 60 .PHONY: all clean dist distfile export srcdist60 .PHONY: all clean release releasefile export srcrel 61 61 62 all: distfile63 distfile: $(DISTFILE)62 all: releasefile 63 releasefile: $(RELEASE_FILE) 64 64 65 $( DISTFILE): $(IMGFILE)65 $(RELEASE_FILE): $(IMG_FILE) 66 66 cp $< $@ 67 67 68 $(IMG FILE):68 $(IMG_FILE): 69 69 $(MAKE) -C $(EXPORT_DIR) 70 70 71 dist: src_dist 71 release: src_rel 72 72 for profile in $(PROFILES); do \ 73 73 $(MAKE) -C $(EXPORT_DIR) clean ; \ 74 74 $(MAKE) -C $(EXPORT_DIR) PROFILE=$$profile ; \ 75 $(MAKE) PROFILE=$$profile distfile ; \75 $(MAKE) PROFILE=$$profile releasefile ; \ 76 76 done 77 77 … … 81 81 $(BZR) export $(EXPORT_DIR) 82 82 83 src_ dist$(SRC_ARCHIVE): export83 src_rel $(SRC_ARCHIVE): export 84 84 $(TAR) -C $(shell dirname $(EXPORT_DIR)) \ 85 85 -cjf $(SRC_ARCHIVE) $(shell basename $(EXPORT_DIR)) 86 86 87 87 clean: 88 rm -f $( DISTFILE)88 rm -f $(RELEASE_FILE)
Note:
See TracChangeset
for help on using the changeset viewer.