Browse Source

fix Makefile: "make uninstall" cleared the whole include dir, also the headers from other projects. Thank you, positron! :-)

master
roker 7 months ago
parent
commit
ee8a4d4e7d
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      Makefile

+ 4
- 4
Makefile View File

@ -5,15 +5,15 @@ ifeq ($(wildcard local.conf),local.conf)
endif
PREFIX?=$(HOME)/local/
BOOST_INCLUDE?=$(PREFIX)/include/
BOOST_LIB?=$(PREFIX)/lib/
BOOST_INCLUDE?=/usr/local/include/
BOOST_LIB?=/usr/local/lib/
AR?=ar
CC?=cc
CXX?=c++
CFLAGS+=-std=c11
CXXFLAGS+=-I$(BOOST_INCLUDE) -std=c++11
LDFLAGS+=$(BOOST_LIB)/libboost_regex.a $(BOOST_LIB)/libboost_filesystem.a
LDFLAGS+=$(BOOST_LIB)/libboost_regex-mt.a $(BOOST_LIB)/libboost_filesystem-mt.a
ifdef NDEBUG
CFLAGS+=-O3 -DNDEBUG -fvisibility=hidden
@ -66,7 +66,7 @@ install: $(TARGET)
cp -v libpEpwebserver.a $(PREFIX)/lib/
uninstall:
for i in *.hh; do rm -f $(PREFIX)/include/pEp/\$i ; done
for i in *.hh; do rm -vf "$(PREFIX)/include/pEp/$$i" ; done
clean:
rm -vf *.a *.o *.d *.d.* $(TARGET) $(TESTS)


Loading…
Cancel
Save