From 1a116cc17d89ece93610c3faa767c7f8c7d69c91 Mon Sep 17 00:00:00 2001 From: namark <namark@disroot.org> Date: Wed, 28 Nov 2018 14:41:58 +0400 Subject: [PATCH] Makefile install target no longer phony. --- Makefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 80975ca..7ea105a 100644 --- a/Makefile +++ b/Makefile @@ -47,9 +47,10 @@ distclean: clean @rmdir $(DISTDIR) 2> /dev/null || true @echo All clean! -install: $(OUT) $(INCLUDE) | $(LIBDIR) - cp $(OUT) $(LIBDIR)/$(TARGET) - @echo Install complete! +install: $(LIBDIR)/$(TARGET) $(INCLUDE) + +$(LIBDIR)/$(TARGET): $(OUT) | $(LIBDIR) + cp $< $@ $(LIBDIR): @mkdir $@ @@ -72,4 +73,4 @@ uninstall: -include $(DEPENDS) .PRECIOUS : $(OBJECTS) -.PHONY : clean distclean install uninstall +.PHONY : clean distclean uninstall -- GitLab