From d3cb98578eec09f78889be65d217f1681b898fcf Mon Sep 17 00:00:00 2001 From: Jeremy Kescher Date: Sat, 28 Aug 2021 00:27:18 +0200 Subject: [PATCH 1/2] Force creation of directories (useful for packaging) --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1b593ef..7ad85f2 100644 --- a/Makefile +++ b/Makefile @@ -30,8 +30,8 @@ debug: ./uwufetch install: build + mkdir -p $(DESTDIR)$(PREFIX) $(DESTDIR)$(LIBDIR)/uwufetch $(DESTDIR)$(MANDIR) cp $(NAME) $(DESTDIR)$(PREFIX)/$(NAME) - ls $(DESTDIR)$(LIBDIR)/uwufetch > /dev/null || mkdir $(DESTDIR)$(LIBDIR)/uwufetch cp -r res/* $(DESTDIR)$(LIBDIR)/uwufetch cp ./$(NAME).1.gz $(DESTDIR)$(MANDIR)/ From 565a5e3b129726b7092d3be738cc49d0a9bb6b39 Mon Sep 17 00:00:00 2001 From: Jeremy Kescher Date: Sat, 28 Aug 2021 10:49:45 +0200 Subject: [PATCH 2/2] Remove build step from install step --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 7ad85f2..f2ce685 100644 --- a/Makefile +++ b/Makefile @@ -29,7 +29,7 @@ debug: $(CC) $(CFLAGS_DEBUG) -o $(NAME) $(FILES) ./uwufetch -install: build +install: mkdir -p $(DESTDIR)$(PREFIX) $(DESTDIR)$(LIBDIR)/uwufetch $(DESTDIR)$(MANDIR) cp $(NAME) $(DESTDIR)$(PREFIX)/$(NAME) cp -r res/* $(DESTDIR)$(LIBDIR)/uwufetch