Force creation of directories (useful for packaging)

This commit is contained in:
Jeremy Kescher 2021-08-28 00:27:18 +02:00
parent 79ad589901
commit d3cb98578e
No known key found for this signature in database
GPG key ID: 48DFE4BB15BA5940

View file

@ -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)/