Skip to content

Commit

Permalink
Use $(RM) instead of rm -f in Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
wins1ey committed Apr 9, 2024
1 parent 8d9e19e commit a42fb74
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ $(OBJ_DIR):
mkdir -p $(OBJ_DIR)

last-gtk.h: $(SRC_DIR)/last-gtk.css
xxd --include $(SRC_DIR)/last-gtk.css > $(SRC_DIR)/last-gtk.h || (rm $(SRC_DIR)/last-gtk.h; false)
xxd --include $(SRC_DIR)/last-gtk.css > $(SRC_DIR)/last-gtk.h || ($(RM) $(SRC_DIR)/last-gtk.h; false)

install: all
install -Dm755 $(BIN) $(DESTDIR)$(PREFIX)/bin/$(BIN)
Expand All @@ -60,19 +60,19 @@ install: all
$(compile_schemas)
install -Dm644 resources/themes/standard/standard.css $(DESTDIR)$(PREFIX)/share/LAST/themes/standard/standard.css
uninstall:
rm -f $(DESTDIR)$(PREFIX)/bin/$(BIN)
rm -f $(DESTDIR)$(PREFIX)/share/applications/$(APP)
rm -rf $(DESTDIR)$(PREFIX)/share/LAST
$(RM) $(DESTDIR)$(PREFIX)/bin/$(BIN)
$(RM) $(DESTDIR)$(PREFIX)/share/applications/$(APP)
$(RM) -r $(DESTDIR)$(PREFIX)/share/LAST
for size in 16 22 24 32 36 48 64 72 96 128 256 512; do \
rm -f $(DESTDIR)$(PREFIX)/share/icons/hicolor/"$$size"x"$$size"/apps/$(ICON).png ; \
$(RM) $(DESTDIR)$(PREFIX)/share/icons/hicolor/"$$size"x"$$size"/apps/$(ICON).png ; \
done

remove-schema:
rm $(DESTDIR)$(PREFIX)/share/glib-2.0/schemas/$(SCHEMA)
$(RM) $(DESTDIR)$(PREFIX)/share/glib-2.0/schemas/$(SCHEMA)
$(compile_schemas)

# Clean target to remove object files and LAS executable
clean:
rm -rf $(BIN) $(OBJ_DIR) $(SRC_DIR)/last-gtk.h
$(RM) -r $(BIN) $(OBJ_DIR) $(SRC_DIR)/last-gtk.h

.PHONY: all last-gtk.h install uninstall remove-schema clean

0 comments on commit a42fb74

Please sign in to comment.