Makefile
changeset 20 a37d30b60a38
parent 19 913dbffb1746
child 21 a6b5ea94ad6e
     1.1 --- a/Makefile	Thu Oct 04 18:05:51 2018 +0200
     1.2 +++ b/Makefile	Thu Oct 04 18:09:57 2018 +0200
     1.3 @@ -18,7 +18,7 @@
     1.4  $(TARGET): $(WITHOUT_TESTS)
     1.5  	ar -rc $@ $^
     1.6  
     1.7 -.PHONY: clean test install
     1.8 +.PHONY: clean test install uninstall
     1.9  
    1.10  clean:
    1.11  	rm -f $(TARGET) $(OBJECTS) *.a test_adapter
    1.12 @@ -29,7 +29,11 @@
    1.13  test_adapter: test_adapter.o $(TARGET)
    1.14  	$(CXX) -o $@ -L$(PEP)/lib -lpEpEngine -L. -lpEpAdapter $<
    1.15  
    1.16 -install:
    1.17 +install: $(TARGET)
    1.18  	-mkdir -p $(PEP)/include
    1.19  	cp $(HEADERS) $(PEP)/include
    1.20 +	cp $(TARGET) $(PEP)/lib
    1.21  
    1.22 +uninstall:
    1.23 +	cd $(PEP)/include && rm -f $(HEADERS)
    1.24 +	cd $(PEP)/lib && rm -f $(TARGET)