diff options
| author | 2013-01-06 15:52:33 +0100 | |
|---|---|---|
| committer | 2013-01-06 15:52:33 +0100 | |
| commit | 4fde21d9913a63e8f057543aefa5b4125d74bd85 (patch) | |
| tree | 3218768c2c8fa5ede3cf2ac02ea72138c2c36621 /src/Makefile | |
| parent | e2999eed45ccd6998c5a692f40b7ff47e1fcb8eb (diff) | |
| download | markam-4fde21d9913a63e8f057543aefa5b4125d74bd85.tar.gz markam-4fde21d9913a63e8f057543aefa5b4125d74bd85.zip | |
Use more variables
This allows any command used to be overridden, when, for example,
they're not installed in PATH.
Diffstat (limited to 'src/Makefile')
| -rw-r--r-- | src/Makefile | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/Makefile b/src/Makefile index 961ad1b..a7d2415 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,4 +1,5 @@ DESTDIR ?= /usr/local +CSC = csc binaries = markam markam-convert install-binaries = $(addprefix install-,$(binaries)) @@ -12,16 +13,16 @@ install: $(install-binaries) uninstall: $(uninstall-binaries) markam: markam.scm $(objects) - csc $^ -o $@ + $(CSC) $^ -o $@ markam-convert: markam-convert.scm $(objects) - csc $^ -o $@ + $(CSC) $^ -o $@ $(install-binaries): install-%: % - install -Dm 755 $* "$(DESTDIR)/bin/$*" + $(INSTALL_PROGRAM) $* "$(DESTDIR)/bin/$*" $(uninstall-binaries): uninstall-%: rm -f "$(DESTDIR)/bin/$*" $(objects): %.o: %.scm - csc -c $^ + $(CSC) -c $^ |
