summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 7e05c8b36cd06d2f1356f9e82c7fdda4dce91eb0 (plain) (blame)
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
26
#!/usr/bin/make
# license: gnu gpl version 3 or higher.
# copyright 2016 rsiddharth <s@ricketyspace.net>

guile=$(shell which guile)
bin=$(HOME)/.bin
git_difme=$(bin)/git-difme
git_difme_src=git-difme.scm

nothing:
	@echo "Give me something to make. "
.PHONY: nothing

git-difme: $(git_difme)
.PHONY: git-difme

$(git_difme): $(git_difme_src)
	@mkdir -p $(bin)
	@touch $@
	@echo "#!"$(guile)" \\ \n-e main -s\n!#" > $@
	@cat $< >> $@
	@chmod +x $@

	@echo "Script at" $@
	@echo "Add" $(bin) "to PATH"