Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1013805
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T10:09:38+00:00 2026-05-16T10:09:38+00:00

Hope everyone is doing well I am having a problem with make files in

  • 0

Hope everyone is doing well

I am having a problem with make files in erlang on windows. I can’t seem to get the following code to work.

.SUFFIXES: .erl .beam

.erl.beam:
    erlc -W $<

    ERL = erl -boot start_clean

MODS = main send get loops

all: compile
    ${ERL} -pa 'G:\Documents and Settings\Administrador' -s main start

compile: ${MODS:%=%.beam}

clean: 
    rm -rf *.beam erl_crash.dump

The files I am trying to compile are main.erl send.erl get.erl loops.erl

I save the make file as an .exe

And the type

make [main]

into the windows shell

All it gives me is a wierd popup error. Is the make [main] command correct?
And is my actual code right?

Thanks for the help,
-B

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T10:09:39+00:00Added an answer on May 16, 2026 at 10:09 am

    Several errors here:

    1. The indented "ERL=" line won’t work right. Leading tabs are special to make. You do not have complete formatting freedom, as with some other languages.

    2. The make file should be saved as Makefile, no extensions. Case may or may not matter to your particular "make" program. All versions of make accept Makefile, however.

    3. The brackets on your command line will never work. I assume you’re cut-and-pasting them from somewhere, but they were probably using "[main]" as an example text you’re supposed to replace, including the brackets.

    4. "make main" will also fail because you don’t have a "main" target in this Makefile. "make all", "make clean" and "make compile" will work, as will several implicit targets, like "make loops.beam".

      You really should get a book on make, if you’re going to continue to use it. I like O’Reilly’s Managing Projects with GNU Make, 3/e by Mecklenburg, available for free online or in dead tree form. The GNU make manual is also available online and as dead trees.

    5. You probably shouldn’t be using traditional "make" here, however. For purely Erlang projects, Emakefiles are shorter, clearer, and just overall better. They’re not so great for building other things along side your Erlang project, but you can always do both: the Makefile uses "erl -make" to kick off the Erlang build, and does everything else itself.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hope everyone is doing well. I have the following output... +---------+--------------+--------------+-----------+---------+----------+ | ord_num |
HI everyone I hope you can help me, I have a problem with a
Hi everyone I am having a problem trying to get this to work. Basically
I'm probably doing something stupid but I just can't seem to get the permissions
Hope the AWK gurus can provide a solution to my problem . I have
hope someone can answer this. Here is some sample code. namespace std { #ifdef
hope everything's great with everyone. can someone please help me to create regexp to
hope every one is doing well :) I have struck with retrieving the month
Good day everyone, i hope you are all happy and healthy :) My problem
WCF has a rich security model, I hope everyone can agree upon that as

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.