Merge pull request #124 from kescherCode/makefile-mkdir

Force creation of directories (useful for packaging)
This commit is contained in:
TheDarkBug 2021-08-28 12:31:56 +02:00 committed by GitHub
commit 7215bd8c91
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,9 +29,9 @@ 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)
ls $(DESTDIR)$(LIBDIR)/uwufetch > /dev/null || mkdir $(DESTDIR)$(LIBDIR)/uwufetch
cp -r res/* $(DESTDIR)$(LIBDIR)/uwufetch
cp ./$(NAME).1.gz $(DESTDIR)$(MANDIR)/