Project

General

Profile

« Previous | Next » 

Revision 3762

root Makefile: Include lib/common.Makefile

View differences:

Makefile
1
include lib/common.Makefile
2

  
3

  
1 4
##### Vars/functions
2 5

  
3 6
# Make
4 7
SHELL := /bin/bash
5
pathParts = $(shell path="$(1)"; echo "$${path%%/*}" "$${path\#*/}")
6
topDir = $(word 1,$(pathParts))
7
subPath = $(word 2,$(pathParts))
8 8
subMake = $(MAKE) $(call subPath,$@) --directory=$(call topDir,$@)
9 9

  
10 10
# OS
......
43 43

  
44 44
##### General targets
45 45

  
46
all:
47

  
48
.SUFFIXES: # turn off built-in suffix rules
49
.SECONDARY: # don't automatically delete intermediate files
50
.DELETE_ON_ERROR: # delete target if recipe fails
51

  
52
_always:
53
.PHONY: _always
54

  
55 46
remake: _always clean
56 47
	$(MAKE)
57 48
# re-run make so that cache of existing files is reset
......
340 331

  
341 332
missing_%_mappings: _always # stem is one of join|input
342 333
	@echo $(emph)"Missing $* mappings:"$(endEmph)
343
	@+$(MAKE) inputs/$@|grep -v -e ' Missing '\
334
	@+$(MAKE) inputs/$@|grep -v -e 'common.Makefile' -e ' Missing '\
344 335
$(if $(filter join,$*), -e '^make '|sort|uniq)

Also available in: Unified diff