Skip to content

Commit

Permalink
makefile: some modifies
Browse files Browse the repository at this point in the history
  • Loading branch information
Toni500github committed Jun 26, 2024
1 parent 3f28ff4 commit b5a88cd
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,17 +66,13 @@ clean:
rm -rf $(BUILDDIR)/$(TARGET) $(OBJ)

distclean:
rm -rf $(BUILDDIR) ./tests/$(BUILDDIR) $(OBJ) cpr/build
find . -type f -name "*.tar.zst" -exec rm -rf "{}" \;
rm -rf $(BUILDDIR) ./tests/$(BUILDDIR) $(OBJ)
find . -type f -name "*.tar.gz" -exec rm -rf "{}" \;
find . -type f -name "*.o" -exec rm -rf "{}" \;
find . -type f -name "*.a" -exec rm -rf "{}" \;
#make -C tests/ clean

install: $(TARGET) locale
install $(BUILDDIR)/$(TARGET) -Dm 755 -v $(DESTDIR)$(PREFIX)/bin/$(TARGET)
find locale -type f -exec install -Dm 755 "{}" "$(DESTDIR)$(PREFIX)/share/{}" \;
cd assets/ && find ascii/ -type f -exec install -Dm 755 "{}" "$(DESTDIR)$(PREFIX)/share/customfetch/{}" \;

test:
make -C tests

.PHONY: $(TARGET) clean fmt toml locale install all
.PHONY: $(TARGET) dist distclean fmt toml install all

0 comments on commit b5a88cd

Please sign in to comment.