Browse Source

make copying more verbose to see what's done or what went w0ng. replace "ar" by $(AR) to make it configurable.

sync
Roker 6 years ago
parent
commit
248b8df06c
  1. 26
      Makefile

26
Makefile

@ -48,19 +48,19 @@ all: $(TARGET)
$(COMPILE.cc) $(OUTPUT_OPTION) $< $(COMPILE.cc) $(OUTPUT_OPTION) $<
$(TARGET): $(WITHOUT_TESTS) $(TARGET): $(WITHOUT_TESTS)
ar -rc $@ $^ $(AR) -rc $@ $^
.PHONY: clean .PHONY: clean
clean: clean:
rm -f $(TARGET) $(OBJECTS) *.a test_adapter test_library lib rm -vf $(TARGET) $(OBJECTS) *.a test_adapter test_library lib
rm -rf test_adapter.dSYM rm -rvf test_adapter.dSYM
rm -rf test_library.dSYM rm -rvf test_library.dSYM
rm -rf .gnupg/ rm -rvf .gnupg/
rm -f .pEp_management.db* rm -vf .pEp_management.db*
.PHONY: distclean .PHONY: distclean
distclean: clean distclean: clean
rm -Rf .gnupg .pEp_management* rm -Rvf .gnupg .pEp_management*
# $$(pwd) will return the incorrect directory, if make is run with `make -C ...`. # $$(pwd) will return the incorrect directory, if make is run with `make -C ...`.
.PHONY: test .PHONY: test
@ -71,12 +71,12 @@ test_%: test_%.o $(TARGET)
.PHONY: install .PHONY: install
install: $(TARGET) install: $(TARGET)
-mkdir -p $(PREFIX)/include/pEp mkdir -p $(PREFIX)/include/pEp
-mkdir -p $(PREFIX)/lib mkdir -p $(PREFIX)/lib
cp $(HEADERS) $(PREFIX)/include/pEp/ cp -v $(HEADERS) $(PREFIX)/include/pEp/
cp $(TARGET) $(PREFIX)/lib/ cp -v $(TARGET) $(PREFIX)/lib/
.PHONY: uninstall .PHONY: uninstall
uninstall: uninstall:
cd $(PREFIX)/include/pEp && rm -f $(HEADERS) cd $(PREFIX)/include/pEp && rm -vf $(HEADERS)
cd $(PREFIX)/lib && rm -f $(TARGET) cd $(PREFIX)/lib && rm -vf $(TARGET)

Loading…
Cancel
Save