We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a41a92 commit e09b3abCopy full SHA for e09b3ab
1 file changed
makefile
@@ -29,16 +29,16 @@ EXEC = $(BUILD_DIR)/$(NAME)
29
30
LOG = .gcc
31
32
-DATA_DIR := $(PREFIX)/share/$(NAME)
+DATA_DIR := $(DESTDIR)$(PREFIX)/share/$(NAME)
33
34
all: $(EXEC)
35
36
install: $(EXEC)
37
install -Dm644 ./data/config $(DATA_DIR)/config
38
- install -Dm755 $(EXEC) $(PREFIX)/bin/$(NAME)
+ install -Dm755 $(EXEC) $(DESTDIR)$(PREFIX)/bin/$(NAME)
39
40
uninstall:
41
- rm -f $(PREFIX)/bin/$(NAME) $(DATA_DIR)/config
+ rm -f $(DESTDIR)$(PREFIX)/bin/$(NAME) $(DATA_DIR)/config
42
43
$(EXEC): $(OBJ)
44
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
0 commit comments