projects
/
dus.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update to _DEFAULT_SOURCE.
[dus.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index
3325911
..
622c52e
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-21,8
+21,8
@@
# along with dus. If not, see <http://www.gnu.org/licenses/>.
#
# along with dus. If not, see <http://www.gnu.org/licenses/>.
#
-BINARY_PATH =
/usr
/bin
-MAN_PATH =
/usr
/share/man/man1
+BINARY_PATH =
$(DESTDIR)/usr/local
/bin
+MAN_PATH =
$(DESTDIR)/usr/local
/share/man/man1
LDFLAGS=
LDFLAGS=
@@
-42,7
+42,9
@@
dus: dus.o
$(CC) -o $@ $^ $(LDFLAGS)
install: dus
$(CC) -o $@ $^ $(LDFLAGS)
install: dus
+ makedir -p $(BINARY_PATH)
install -m 755 dus $(BINARY_PATH)
install -m 755 dus $(BINARY_PATH)
+ makedir -p $(MAN_PATH)
install -m 644 dus.1 $(MAN_PATH)
gzip $(MAN_PATH)/dus.1
install -m 644 dus.1 $(MAN_PATH)
gzip $(MAN_PATH)/dus.1