Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

irteus/Makefile: support parallel compile #373

Merged
merged 1 commit into from
May 4, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 15 additions & 10 deletions irteus/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -114,24 +114,29 @@ $(LIBIRTEUSIMG): $(INSTALLLIBDIR)/jpegmemcd.$(LSFX) $(IRTEUSIMGOBJS) $(IRTIMGCOB
$(LIBIRTEUSGL): $(IRTEUSGLOBJS)
$(LD) $(SOFLAGS) $(OUTOPT)$(LIBIRTEUSGL) $(IRTEUSGLOBJS) $(IMPLIB)

$(IRTEUSOBJS):
$(BINDIR)/eus2$(ESFX) "(setq *objdir* \"$(INSTALLOBJDIR)/\")" < ./compile_irt.l > /dev/null
$(IRTEUSOBJS): $(OBJDIR)/compile_irt.log
$(OBJDIR)/compile_irt.log:
$(BINDIR)/eus2$(ESFX) "(setq *objdir* \"$(INSTALLOBJDIR)/\")" < ./compile_irt.l > $(OBJDIR)/compile_irt.log
-rm -f $(IRTEUS_C) $(IRTEUS_H)

$(IRTEUSGOBJS):
$(BINDIR)/eusgl$(ESFX) "(setq *objdir* \"$(INSTALLOBJDIR)/\")" < ./compile_irtg.l > /dev/null
$(IRTEUSGOBJS): $(OBJDIR)/compile_irtg.log
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After this commit, build behavior changed because of change of build dependency.

  • Reproduce the problem
$ cd ~/ros/indigo_parent/src/Euslisp/jskeus/irteus
$ touch irtmodel.l
$ make
make: Nothing to be done for `all'.
  • Expected behavior
    compile_irtg.l is called invoked by irtmodel.l timestamp update

$(OBJDIR)/compile_irtg.log:
$(BINDIR)/eusgl$(ESFX) "(setq *objdir* \"$(INSTALLOBJDIR)/\")" < ./compile_irtg.l > $(OBJDIR)/compile_irtg.log
-rm -f $(IRTEUSG_C) $(IRTEUSG_H)

$(IRTEUSXOBJS) :
$(BINDIR)/eusx$(ESFX) "(setq *objdir* \"$(INSTALLOBJDIR)/\")" < ./compile_irtx.l > /dev/null
$(IRTEUSXOBJS): $(OBJDIR)/compile_irtx.log
$(OBJDIR)/compile_irtx.log:
$(BINDIR)/eusx$(ESFX) "(setq *objdir* \"$(INSTALLOBJDIR)/\")" < ./compile_irtx.l > $(OBJDIR)/compile_irtx.log
-rm -f $(IRTEUSX_C) $(IRTEUSX_H)

$(IRTEUSIMGOBJS) :
$(BINDIR)/eusx$(ESFX) "(setq *objdir* \"$(INSTALLOBJDIR)/\")" < ./compile_irtimg.l > /dev/null
$(IRTEUSIMGOBJS): $(OBJDIR)/compile_irtimg.log
$(OBJDIR)/compile_irtimg.log:
$(BINDIR)/eusx$(ESFX) "(setq *objdir* \"$(INSTALLOBJDIR)/\")" < ./compile_irtimg.l > $(OBJDIR)/compile_irtimg.log
-rm -f $(IRTEUSIMG_C) $(IRTEUSIMG_H)

$(IRTEUSGLOBJS):
$(BINDIR)/eusgl$(ESFX) "(setq *objdir* \"$(INSTALLOBJDIR)/\")" < ./compile_irtgl.l > /dev/null
$(IRTEUSGLOBJS): $(OBJDIR)/compile_irtgl.log
$(OBJDIR)/compile_irtgl.log:
$(BINDIR)/eusgl$(ESFX) "(setq *objdir* \"$(INSTALLOBJDIR)/\")" < ./compile_irtgl.l > $(OBJDIR)/compile_irtgl.log
-rm -f $(IRTEUSGL_C) $(IRTEUSGL_H)

PQP/$(ARCHDIR)/libPQP-static.a:
Expand Down