summaryrefslogtreecommitdiffstats
path: root/t/templates/changes-simple-filler/Makefile.in
blob: 286cc6dfb581753ff9c1093d578202e9f6bb38cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
ROOT_DIR:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))

product = [% $build_product %]

references = $(ROOT_DIR)/referenced-files

.DEFAULT_GOAL := $(product)

$(product): $(ROOT_DIR)/$(product)
	if [ -d $(references) ] ; then \
		cp -rp $(references)/. . ; \
	fi
	cp $(ROOT_DIR)/$(product) $(product)

.PHONY: clean
clean:
	rm -f $(product)