Also add DESTDIR in the uninstall targets in kore and kodev Makefiles.

This commit is contained in:
Frederic Cambus 2020-09-11 15:49:11 +02:00 committed by Joris Vink
parent a62c504a40
commit 19573a7bf0
2 changed files with 4 additions and 4 deletions

View File

@ -221,9 +221,9 @@ install-sources:
fi
uninstall:
rm -f $(INSTALL_DIR)/$(KORE)
rm -rf $(INCLUDE_DIR)
rm -rf $(SHARE_DIR)
rm -f $(DESTDIR)$(INSTALL_DIR)/$(KORE)
rm -rf $(DESTDIR)$(INCLUDE_DIR)
rm -rf $(DESTDIR)$(SHARE_DIR)
$(MAKE) -C kodev uninstall
tools-build: $(KODEV)

View File

@ -47,7 +47,7 @@ install: $(KODEV)
install -m 555 $(KODEV) $(DESTDIR)$(INSTALL_DIR)/$(KODEV)
uninstall:
rm -f $(INSTALL_DIR)/$(KODEV)
rm -f $(DESTDIR)$(INSTALL_DIR)/$(KODEV)
$(OBJDIR)/%.o: ../src/%.c
$(CC) $(CFLAGS) -c $< -o $@