aboutsummaryrefslogtreecommitdiff
path: root/icepll/Makefile
diff options
context:
space:
mode:
authorClaire Wolf <clifford@clifford.at>2020-04-10 14:08:39 +0200
committerGitHub <noreply@github.com>2020-04-10 14:08:39 +0200
commit879d5b261c9035fef915671b9a9f85f3ae46a223 (patch)
tree47dbe6b20205c9faecee0217a863486e68ef253e /icepll/Makefile
parentd1cee1d4ae545fdca995cd656ef52d8923aa77e9 (diff)
parentfe3086a7339f0c2731fb1a14f6ef0e4d93a0377e (diff)
Merge pull request #248 from mmicko/program_prefix
Support custom PROGRAM_PREFIX
Diffstat (limited to 'icepll/Makefile')
-rw-r--r--icepll/Makefile12
1 files changed, 6 insertions, 6 deletions
diff --git a/icepll/Makefile b/icepll/Makefile
index 13a1d81..6e9467b 100644
--- a/icepll/Makefile
+++ b/icepll/Makefile
@@ -4,21 +4,21 @@ ifeq ($(STATIC),1)
LDFLAGS += -static
endif
-all: icepll$(EXE)
+all: $(PROGRAM_PREFIX)icepll$(EXE)
-icepll$(EXE): icepll.o
+$(PROGRAM_PREFIX)icepll$(EXE): icepll.o
$(CXX) -o $@ $(LDFLAGS) $^ $(LDLIBS)
install: all
mkdir -p $(DESTDIR)$(PREFIX)/bin
- cp icepll$(EXE) $(DESTDIR)$(PREFIX)/bin/icepll$(EXE)
+ cp $(PROGRAM_PREFIX)icepll$(EXE) $(DESTDIR)$(PREFIX)/bin/$(PROGRAM_PREFIX)icepll$(EXE)
uninstall:
- rm -f $(DESTDIR)$(PREFIX)/bin/icepll$(EXE)
+ rm -f $(DESTDIR)$(PREFIX)/bin/$(PROGRAM_PREFIX)icepll$(EXE)
clean:
- rm -f icepll$(EXE)
- rm -f icepll.exe
+ rm -f $(PROGRAM_PREFIX)icepll$(EXE)
+ rm -f $(PROGRAM_PREFIX)icepll.exe
rm -f *.o *.d
-include *.d