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 7979243
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T09:43:35+00:00 2026-06-04T09:43:35+00:00

First of all, I know how to write a basic/intermediate level makefile. In my

  • 0

First of all, I know how to write a basic/intermediate level
makefile. In my c++ projects I use a makefile that does a lot of stuff
automatically. The most important to me is that it automatically
detects all source files (which are always in the same folder) using
wildcards, uses that to predict the name (and location) of all object files, and compiles appropriately.

Recently I’ve been trying to achieve the same effect with my scala
projects, but I’ve hit two obstacles.

  • Copilled class files which belong to packages are stored inside
    subdirectories (like com/me/mypack/). This is a problem because
    Make needs to find these files to check the timestamps (and I
    have no idea how to do that automatically).
  • Some source files (such as those defining a package object)
    generate class files with different naming standards. Again, Make
    needs to know where these class files are and I don’t know how to
    do that automatically.

The consequence of this is that the “problematic” source files are
recompiled every time I run make (which is aggravated by scala’s long
compile times). I’d like to know how to fix that without having to
manually write out the entire list of expected class files.

EDIT As an extra note: I’d like to avoid placing the source files in subdirectories. I like keeping them all in the same directory for several reasons.

  • 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-06-04T09:43:36+00:00Added an answer on June 4, 2026 at 9:43 am

    You should use sbt or Maven for Scala. These are designed specifically for the way Scala and Java work, and they will be much easier to set up and use. They also provide many more features than make does.

    These tools are used for a variety of things. Compiling is a big one, but they are also important for dependency management. Also, sbt (and probably Maven?) does “incremental compilation”, so that only classes that have changed are recompiled, which speeds up compilation.

    I personally use sbt, but I know people who prefer Maven.

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

Sidebar

Related Questions

First of all: I do know that there are already many questions and answers
First of all, I know that UDP is not a reliable protocol but I
First of all I don't know if this is the right approach. I want
First of all, I know there are a few quite similar questions here on
first of all, sorry if that question is dumb but I´m a total newbie
Introduction I'm relatively new to C++. I went through all the basic stuff and
I know how to write a basic C Mex function with one output of
First of all, I don’t really know what’s wrong with dependent types and why
I'm trying to add a link to a basic MvcScaffolding project that outputs all
First of all, what's the difference between: www.domain.com and domain.com Should I pay attention

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.