Posted on 2006-05-24
Last Modified: 2013-12-26
Does anyone can explain these commands for me? I am just not sure about what they mean.

1) sed -e $(2) $(1) > $(TEMP)/$(notdir $(1));

2) csedupdate = if ! grep --silent -E -e $(2) $(1); then $(call sedupdate,$(1),$(3));fi

3)ifeq ($(TGENV),arm)
                                $(call eat,$@)(cd $(NESSUSDIR);\
            PLATFORM=$(NESSUS_PLATFORM) BUILDDSP=false DSPIMAGE=false TESTAPP=false make -s setup)

And what's the slash \ after semicolon means? And when we need that?

Thank you!
Question by:chenzhepeter
    LVL 48

    Expert Comment

    Do you know what programming language this is?

    Author Comment

    I think it's the makefile for C
    LVL 48

    Expert Comment

    Ahh, that makes sense.

    A backslash after a semi-colon means a line continuation.


    Author Comment

    I think the first one is a sed UNIX command but I don't know how the substitution can be > $(TEMP)/$(notdir $(1)); and also don't understand the notdir here.
    LVL 51

    Accepted Solution

    1) need to see the rule (target: dependency); $(1) and $(2) are probably dependencies
    2) csedupdate will be assigned the result of the if command (this is strange and probably a special feature of your make)
    3) ifeq is make's conditional if and tests the result of the following argument
      the final \ (which must not be followed by anything else than a newline) escapes the newline so that the next line gets part of the current one and completes the command there

    Author Comment

    Thanks, I think that explains me alot.

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    repeatEnd java challenge 42 83
    Macro to save highlighted rows as a separate file 5 34
    ORA-01403: no data found 43 78
    sumDigits challenge 9 73
    Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
    If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
    This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now