From 3beaad73b57d7c59d21ea3bb2e87e3aa5ac71737 Mon Sep 17 00:00:00 2001 From: Volker Birk Date: Thu, 4 Oct 2018 18:09:57 +0200 Subject: [PATCH] adding uninstall --- Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index cbe9e8d..865dcf6 100644 --- a/Makefile +++ b/Makefile @@ -18,7 +18,7 @@ all: $(TARGET) $(TARGET): $(WITHOUT_TESTS) ar -rc $@ $^ -.PHONY: clean test install +.PHONY: clean test install uninstall clean: rm -f $(TARGET) $(OBJECTS) *.a test_adapter @@ -29,7 +29,11 @@ test: test_adapter test_adapter: test_adapter.o $(TARGET) $(CXX) -o $@ -L$(PEP)/lib -lpEpEngine -L. -lpEpAdapter $< -install: +install: $(TARGET) -mkdir -p $(PEP)/include cp $(HEADERS) $(PEP)/include + cp $(TARGET) $(PEP)/lib +uninstall: + cd $(PEP)/include && rm -f $(HEADERS) + cd $(PEP)/lib && rm -f $(TARGET)