diff --git a/Makefile b/Makefile index 80975cae7ea38cf76d699b3bb3c4e54661ad9c0a..7ea105add7bd1acb428b57024c17123c69bd6bb7 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