diff options
Diffstat (limited to 'icepack/Makefile')
-rw-r--r-- | icepack/Makefile | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/icepack/Makefile b/icepack/Makefile index a89aa1f..256c339 100644 --- a/icepack/Makefile +++ b/icepack/Makefile @@ -1,10 +1,7 @@ -# CXX = clang -CXX ?= clang +include ../config.mk LDLIBS = -lm -lstdc++ CXXFLAGS = -MD -O0 -ggdb -Wall -std=c++11 -I/usr/local/include MXEGCC = /usr/local/src/mxe/usr/bin/i686-pc-mingw32-gcc -CC = $(CXX) -DESTDIR = /usr/local all: icepack iceunpack @@ -17,12 +14,13 @@ iceunpack: icepack ln -sf icepack iceunpack install: all - cp icepack $(DESTDIR)/bin/icepack - ln -sf icepack $(DESTDIR)/bin/iceunpack + mkdir -p $(DESTDIR)$(PREFIX)/bin + cp icepack $(DESTDIR)$(PREFIX)/bin/icepack + ln -sf icepack $(DESTDIR)$(PREFIX)/bin/iceunpack uninstall: - rm -f $(DESTDIR)/bin/icepack - rm -f $(DESTDIR)/bin/iceunpack + rm -f $(DESTDIR)$(PREFIX)/bin/icepack + rm -f $(DESTDIR)$(PREFIX)/bin/iceunpack clean: rm -f icepack |