Invoking make install will stop if binary not already built.

pull/954/head
Fredrik Öhrström 2023-05-07 12:26:04 +02:00
rodzic 6913d5e906
commit e887a8847e
1 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -247,8 +247,9 @@ check_docs:
@diff /tmp/options_in_code /tmp/options_in_binary || echo CODE_VS_BINARY
@echo "OK docs"
install: $(BUILD)/wmbusmeters check_docs
echo "Installing $(BUILD)/wmbusmeters"
install:
@if [ ! -f $(BUILD)/wmbusmeters ] ; then echo "Cannot find the binary to install! You have to run just \"make\" first!" ; exit 1 ; fi
@echo "Installing $(BUILD)/wmbusmeters"
@./install.sh $(BUILD)/wmbusmeters $(DESTDIR) $(EXTRA_INSTALL_OPTIONS)
# Uninstall binaries and manpages. But keep configuration data and wmbusmeters user/group.