From 003b373d214b96e4199cbb4ddbda1ba78dc6cae3 Mon Sep 17 00:00:00 2001 From: namark <namark@disroot.org> Date: Wed, 6 Apr 2022 02:23:20 +0400 Subject: [PATCH] Allow installing make templates/includes only. --- Makefile | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 0e8e1e7..cdcc82b 100644 --- a/Makefile +++ b/Makefile @@ -52,7 +52,10 @@ distclean: clean @rmdir -p $(DISTDIR) 2> /dev/null || true @echo All clean! -install: $(TARGET) $(INCLUDE) +install-includes: $(INCLUDE) + @echo Includes installed! + +install: $(TARGET) install-includes @echo Install complete! $(INCDIR)/make_templates/%: ./make_templates/% $(COPYRIGHT) @@ -69,9 +72,13 @@ $(BINDIR)/%: ./%.sh | $(BINDIR) $(BINDIR): @mkdir -p $@ -uninstall: - -rm $(TARGET) +uninstall-includes: -rm $(INCLUDE) + @rmdir -p $(shell dirname $(INCLUDE)) 2> /dev/null || true + @echo Includes uninstalled! + +uninstall: uninstall-includes + -rm $(TARGET) @rmdir -p $(BINDIR) 2> /dev/null || true @rmdir -p $(shell dirname $(INCLUDE)) 2> /dev/null || true @echo Uninstall complete! @@ -79,4 +86,4 @@ uninstall: -include $(DEPENDS) .PRECIOUS : $(OBJECTS) -.PHONY : clean distclean uninstall +.PHONY : clean distclean uninstall uninstall-includes -- GitLab