Merge pull request #124 from kescherCode/makefile-mkdir
Force creation of directories (useful for packaging)
This commit is contained in:
commit
7215bd8c91
1 changed files with 2 additions and 2 deletions
4
Makefile
4
Makefile
|
@ -29,9 +29,9 @@ debug:
|
||||||
$(CC) $(CFLAGS_DEBUG) -o $(NAME) $(FILES)
|
$(CC) $(CFLAGS_DEBUG) -o $(NAME) $(FILES)
|
||||||
./uwufetch
|
./uwufetch
|
||||||
|
|
||||||
install: build
|
install:
|
||||||
|
mkdir -p $(DESTDIR)$(PREFIX) $(DESTDIR)$(LIBDIR)/uwufetch $(DESTDIR)$(MANDIR)
|
||||||
cp $(NAME) $(DESTDIR)$(PREFIX)/$(NAME)
|
cp $(NAME) $(DESTDIR)$(PREFIX)/$(NAME)
|
||||||
ls $(DESTDIR)$(LIBDIR)/uwufetch > /dev/null || mkdir $(DESTDIR)$(LIBDIR)/uwufetch
|
|
||||||
cp -r res/* $(DESTDIR)$(LIBDIR)/uwufetch
|
cp -r res/* $(DESTDIR)$(LIBDIR)/uwufetch
|
||||||
cp ./$(NAME).1.gz $(DESTDIR)$(MANDIR)/
|
cp ./$(NAME).1.gz $(DESTDIR)$(MANDIR)/
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue