Skip to main content
Code Review

Questions tagged [make]

The tool called "make" is a build manager which compares the last modification times of various files and performs user specified actions (commands) when the "target" files are found to be older than their dependencies.

Filter by
Sorted by
Tagged with
3 votes
1 answer
314 views

Writing a generic makefile for C projects

Directory Structure: . ├── check.sh ├── GNUmakefile ├── Makefile └── src Makefile has these contents: ...
Madagascar's user avatar
  • 10.1k
3 votes
2 answers
379 views

Makefile to build and test a C program

Requirements: make shalt build read_file program in the root directory of the project from all the files in the ...
Madagascar's user avatar
  • 10.1k
1 vote
2 answers
194 views

Makefile template

I have created a Makefile template file which I hope to be able to easily drop in to a folder and have useful targets ready. I am, however, not very familiar with ...
ZarakshR's user avatar
  • 145
1 vote
1 answer
165 views

Makefile: Include a generated-on-demand file

For the record, I'm writing according to the NEXT - Version 5 of Single Unix Specification, which is Issue 8 if you count the days when it was named XPG. In this new standard, a few new already-common-...
DannyNiu's user avatar
  • 320
5 votes
2 answers
572 views

CSV to TSV converter in C+yacc+lex and a Makefile

This is Comma-Separated Values to Tab-Separated Values converter written in C, with yacc(1) and lex(1). I'm remembering how to use yacc (the first (and last) time I used it was while reading «The UNIX ...
2 votes
1 answer
401 views

Makefile that compiles to two separate executables

I'm working on a project that will have both a server and a client, using Boost's ASIO library for networking. I'm not really comfortable working with Makefiles, but, with some help from Chase Lambert'...
Spiwocoal's user avatar
1 vote
1 answer
185 views

Optimization of General Purpose Makefile

I wrote a makefile that would generate a simple executable from the example directory structure. project/ source/ include/ makefile The makefile itself comes ...
user avatar
user225978
8 votes
2 answers
1k views

std::vector<bool> workaround in C++

I've been trying to make an std::vector of boolean values and I got fed up with the specialization. To get around this, I made a wrapper class around ...
3 votes
2 answers
269 views

Generic makefile for C++ projects

Looking at back at the C++ projects I've developed, the Makefiles are a mess. To tell you the truth, I copied one a long time ago and basically have been cutting and pasting it haphazardly ever since....
Jaldhar's user avatar
  • 409
2 votes
0 answers
138 views

Makefile for a document generation system

This is my first shot at writing a makefile for a document generation system. Please identify any more ways to refine it. Some pointers on how it works: The INPUT files initially are templates to be ...
1 vote
1 answer
137 views

Understand the dependency levels of makefiles

Assume that the project has the following files, where the first files is dependent on the files under it's category in the unordered list: main.c global.h (contains enumerations and #define ...
3N4N's user avatar
  • 111
4 votes
0 answers
70 views

Make stylesheets, with automatic dependency tracking

This is a revision of the code posted here. It's a Makefile that I want to use for compiling Sass files to CSS in web projects. For this, I typically have two folders ...
4 votes
1 answer
118 views

Standalone GNU Makefile tracking `@import` statements in Sass

The following is a (working) excerpt from the Makefile I want to use in web projects. I wanted this Makefile to contain all the necessary code and not rely on other self-written files. Partly, because ...
4 votes
1 answer
157 views

GNU Make variable relationship graph using Python

This program runs through a preprocessed makefile (make --print-data-base | python make_graph.py [options]) to assemble a directed graph of its variables. I ...
4 votes
1 answer
457 views

Pandoc builder system

I have created a GNUMake building system for pandoc. It has grown quite a bit, I wonder if I can optimize it further. Would it be possible, for instance, that it only runs a target if the output hasn'...
lf_araujo's user avatar
  • 145

15 30 50 per page
1
2 3

AltStyle によって変換されたページ (->オリジナル) /