Skip to content

Commit 4e34f82

Browse files
xfgustabagder
authored andcommitted
Add an INSTALL variable to the Makefile
1 parent 304f1ac commit 4e34f82

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Makefile

+6-4
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,17 @@ PREFIX ?= /usr/local
88
BINDIR ?= $(DESTDIR)$(PREFIX)/bin
99
MANDIR ?= $(DESTDIR)$(PREFIX)/share/man/man1
1010

11+
INSTALL = install
12+
1113
$(TARGET): $(OBJS)
1214

1315
trurl.o:trurl.c version.h
1416

1517
install:
16-
install -d $(BINDIR)
17-
install -m 0755 $(TARGET) $(BINDIR)
18-
install -d $(MANDIR)
19-
install -m 0644 $(MANUAL) $(MANDIR)
18+
$(INSTALL) -d $(BINDIR)
19+
$(INSTALL) -m 0755 $(TARGET) $(BINDIR)
20+
$(INSTALL) -d $(MANDIR)
21+
$(INSTALL) -m 0644 $(MANUAL) $(MANDIR)
2022

2123
clean:
2224
rm -f $(OBJS) $(TARGET)

0 commit comments

Comments
 (0)