From b9e6d07e9ca9c4c6fb758e6886f43684948d70a7 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Thu, 31 Dec 2015 12:05:04 +0100 Subject: Added config.mk, correct DESTDIR/PREFIX usage --- icemulti/Makefile | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'icemulti') diff --git a/icemulti/Makefile b/icemulti/Makefile index f195e61..387549d 100644 --- a/icemulti/Makefile +++ b/icemulti/Makefile @@ -1,19 +1,17 @@ -# CXX = clang -CXX ?= clang +include ../config.mk LDLIBS = -lm -lstdc++ CXXFLAGS = -MD -O0 -ggdb -Wall -std=c++11 -CC = $(CXX) -DESTDIR = /usr/local all: icemulti icemulti: icemulti.o install: all - cp icemulti $(DESTDIR)/bin/icemulti + mkdir -p $(DESTDIR)$(PREFIX)/bin + cp icemulti $(DESTDIR)$(PREFIX)/bin/icemulti uninstall: - rm -f $(DESTDIR)/bin/icemulti + rm -f $(DESTDIR)$(PREFIX)/bin/icemulti clean: rm -f icemulti -- cgit v1.2.3