Closed
Bug 645356
Opened 14 years ago
Closed 14 years ago
Use pymake builtins
Categories
(Firefox Build System :: General, defect)
Firefox Build System
General
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla5
People
(Reporter: Mitch, Assigned: Mitch)
References
Details
(Whiteboard: fixed-in-bs)
Attachments
(1 file)
|
33.34 KB,
patch
|
khuey
:
review+
|
Details | Diff | Splinter Review |
pymake has its own built-in mkdir, rm, sleep and touch implementations. We should make use of them where we can, and remove any redundant/default parameters while we're at it.
| Assignee | ||
Updated•14 years ago
|
Summary: Use of pymake builtins → Use pymake builtins
| Assignee | ||
Comment 1•14 years ago
|
||
Attachment #522117 -
Flags: review?(khuey)
Updated•14 years ago
|
Comment on attachment 522117 [details] [diff] [review]
Patch
> export:: $(TARGETS) $(HEADERS)
> $(INSTALL) $(IFLAGS1) $(HEADERS) $(DIST)/include
>- -rm -f $(FINAL_LINK_COMPS) $(FINAL_LINK_LIBS) $(FINAL_LINK_COMP_NAMES)
>- -rm -f $(DIST)/bin/chrome/chromelist.txt
>+ -$(RM) $(FINAL_LINK_COMPS) $(FINAL_LINK_LIBS) $(FINAL_LINK_COMP_NAMES)
>+ -$(RM) $(DIST)/bin/chrome/chromelist.txt
I think you can drop the chromelist.txt thing entirely. That's been gone for a while.
Also, do builtins work right with -? Not sure if that's tested or not.
> ifdef MKDEPEND_DIR
> clean clobber realclean clobber_all::
>- cd $(MKDEPEND_DIR); $(MAKE) $@
>+ cd $(MKDEPEND_DIR)
>+ $(MAKE) $@
Er, this is completely wrong, no?
>@@ -1580,18 +1582,18 @@ export:: FORCE
> endif
>
> $(IDL_DIR)::
> $(NSINSTALL) -D $@
>
> # generate .h files from into $(XPIDL_GEN_DIR), then export to $(DIST)/include;
> # warn against overriding existing .h file.
> $(XPIDL_GEN_DIR)/.done:
>- @if test ! -d $(XPIDL_GEN_DIR); then echo Creating $(XPIDL_GEN_DIR)/.done; rm -rf $(XPIDL_GEN_DIR); mkdir $(XPIDL_GEN_DIR); fi
>- @touch $@
>+ $(MKDIR) -p $(XPIDL_GEN_DIR)
>+ @$(TOUCH) $@
> $(CURDIR)/$(MDDEPDIR):
>- @if test ! -d $@; then echo Creating $@; rm -rf $@; mkdir $@; else true; fi
>+ $(MKDIR) -p $@
This shell killing warms my heart.
r=me with the stuff mentioned fixed. I'm assuming you've tested this well.
Attachment #522117 -
Flags: review?(khuey) → review+
| Assignee | ||
Comment 3•14 years ago
|
||
OS: Windows 7 → All
Hardware: x86 → All
Whiteboard: fixed-in-bs
Comment 4•14 years ago
|
||
(In reply to comment #2)
>(From update of attachment 522117 [details] [diff] [review])
>> ifdef MKDEPEND_DIR
>> clean clobber realclean clobber_all::
>>- cd $(MKDEPEND_DIR); $(MAKE) $@
>>+ cd $(MKDEPEND_DIR)
>>+ $(MAKE) $@
>Er, this is completely wrong, no?
How about $(MAKE) -C $(MKDEPEND_DIR) $@
| Assignee | ||
Comment 5•14 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla2.2
Updated•7 years ago
|
Product: Core → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•