summaryrefslogtreecommitdiff
path: root/project/osforce.mk
blob: 3fd379d23c55636cac11d135c2815bc8ae5f31ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
ifneq ($(CFGHOST),@cfghost@)
include $(PROJECT_DIR)/config/$(CFGHOST)/config.mk
endif

CFGHOST_SYNONYM ?= $(CFGHOST)

ifneq ($(CFGHOST),$(CFGHOST_SYNONYM))
include $(PROJECT_DIR)/config/$(CFGHOST_SYNONYM)/config.mk
endif

config.tag:
	mkdir -p build
	cp -a $(PROJECT_DIR)/config/$(CFGHOST_SYNONYM)/config.c   build/
	cp -a $(PROJECT_DIR)/config/$(CFGHOST_SYNONYM)/pyconfig.h build/
	touch config.tag

clean-config:
	rm -f config.tag
	rm -f build/config.c
	rm -f build/pyconfig.h

clean:	clean-config

build/config.c:		config.tag
build/pyconfig.h:	config.tag