Skip to content

Commit

Permalink
Improve makefile variable stability
Browse files Browse the repository at this point in the history
  • Loading branch information
flipflop97 committed Feb 28, 2019
1 parent e037326 commit 2b14444
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
7 changes: 3 additions & 4 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ BUILD_DIR ?= $(CURDIR)/build
export BUILD_DIR

INSTALL_DIR ?= $(XDG_DATA_HOME)/icons
INSTALL_DIR := $(INSTALL_DIR)/Mato
export INSTALL_DIR

TEMP_DIR ?= /tmp
Expand All @@ -21,9 +20,9 @@ build:
$(MAKE) -C src

install:
mkdir -p $(INSTALL_DIR)
rm -rf $(INSTALL_DIR)
cp -r $(BUILD_DIR) $(INSTALL_DIR)
mkdir -p $(INSTALL_DIR)/Mato
rm -rf $(INSTALL_DIR)/Mato
cp -r $(BUILD_DIR) $(INSTALL_DIR)/Mato

clean:
rm -rf $(BUILD_DIR)
Expand Down
1 change: 1 addition & 0 deletions src/cursors/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ $(BUILD_FILES):
rsvg-convert -w 96 -o $(TEMP_DIR)/$(LOCAL_DIR)/$@_96.png $@.svg
echo -e "24 2 2 $@_24.png\n48 4 4 $@_48.png\n72 6 6 $@_72.png\n96 8 8 $@_96.png" |\
xcursorgen -p $(TEMP_DIR)/$(LOCAL_DIR) - $(BUILD_DIR)/$(LOCAL_DIR)/$@

1 change: 1 addition & 0 deletions src/static/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ copy:
cp -r full/ $(BUILD_DIR)
cp -r symbolic/ $(BUILD_DIR)
cp index.theme $(BUILD_DIR)

0 comments on commit 2b14444

Please sign in to comment.