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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T15:32:25+00:00 2026-06-09T15:32:25+00:00

My end goal is to produce a simple .deb package. For that I’ve read

  • 0

My end goal is to produce a simple .deb package.

For that I’ve read it’s better to provide 3 build phases in my build infrastructure of the project, rather than do it in the debian/ folder.

So first thing I need is a configure script, however I want the simplest configure script ever that just receives a “–prefix” argument and passes its value to the Makefile system (so the “install” target of the makefile can copy the files over to it).

Can I do this without using autoconf? I know autoconf is great but for the simplest configuration-phase ever I may not need it yet so badly.

Thanks

  • 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-09T15:32:26+00:00Added an answer on June 9, 2026 at 3:32 pm

    I ended up using this:

    #!/usr/bin/env bash
    prefix=NONE
    test "$prefix" = NONE && prefix=/usr/local
    
    usage ()
    {
        echo ""
        echo "Usage : configure [--prefix=PREFIX]"
        echo ""
    }
    
    while test x$1 != x; do
        case $1 in
            --prefix=*)
                prefix=`echo $1 | sed 's/--prefix=//'`
                ;;
            --prefix)
                shift
                prefix=$1
                ;;
            --help)
                usage
                exit
                ;;
            *)
                echo Warning: unknown argument $1 >&2
                usage
                ;;
        esac
        shift
    done
    
    echo -n "SUBDIRS = " > config.make
    
    echo Configuration Summary
    echo ---------------------
    echo
    echo "MyApp has been configured with "
    echo "    prefix = $prefix"
    echo
    echo >> config.make
    echo
    
    echo -n  "prefix=$prefix" >> config.make
    

    Then in the Makefile the first thing I need to do is:

    top_srcdir=.
    CONFIG_MAKE=$(top_srcdir)/config.make
    
    -include $(top_srcdir)/config.make
    

    I would be interested if there are better solutions than this.

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

Sidebar

Related Questions

My end goal is simple. I am building a website that has three components:
The end goal of this part of my project is to be able to
I recently started a new personal project to learn Entity Framework. My end goal
My end goal is to create a firefox extension that inserts an HTML button
My end goal is to create a checkbox that, when selected, checks all the
My ultimate goal for this project is to produce the correct number of active
My end goal is local development of a Radiant CMS installation. So, need rails
This is for the Apple platform. My end goal is to do a find
First off, let me define the end goal: I'd like to Wordpress (version 2.8)
I am currently developing an email server in C, and the end goal is

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.