Flattened Makefile 1: Difference between revisions

From HELIOS Digital DAQ
Jump to navigation Jump to search
(Created page with "== Flattened Makefile 1 == Using a pile of copy/paste, let's try to build a flat makefile from the many levels of other files including other files.")
 
Line 1: Line 1:
== Flattened Makefile 1 ==
== Flattened Makefile 1 ==
Using a pile of copy/paste, let's try to build a flat makefile from the many levels of other files including other files.
Using a pile of copy/paste, let's try to build a flat makefile from the many levels of other files including other files.
<nowiki>
#Makefile at top of application tree
TOP = .
include $(TOP)/configure/CONFIG
DIRS := $(DIRS) $(filter-out $(DIRS), configure)
DIRS := $(DIRS) $(filter-out $(DIRS), $(wildcard *App))
DIRS := $(DIRS) $(filter-out $(DIRS), $(wildcard *app))
DIRS := $(DIRS) $(filter-out $(DIRS), $(wildcard iocBoot))
DIRS := $(DIRS) $(filter-out $(DIRS), $(wildcard iocboot))
include $(TOP)/configure/RULES_TOP

Revision as of 19:12, May 22, 2018

Flattened Makefile 1

Using a pile of copy/paste, let's try to build a flat makefile from the many levels of other files including other files.

<nowiki>
  1. Makefile at top of application tree

TOP = . include $(TOP)/configure/CONFIG DIRS := $(DIRS) $(filter-out $(DIRS), configure) DIRS := $(DIRS) $(filter-out $(DIRS), $(wildcard *App)) DIRS := $(DIRS) $(filter-out $(DIRS), $(wildcard *app)) DIRS := $(DIRS) $(filter-out $(DIRS), $(wildcard iocBoot)) DIRS := $(DIRS) $(filter-out $(DIRS), $(wildcard iocboot)) include $(TOP)/configure/RULES_TOP