Commit ba29cad8 authored by Jonas Termansen's avatar Jonas Termansen

Improve cp(1).

parent ad8d025c
......@@ -21,7 +21,6 @@ find
head
help
init
install-file
kernelinfo
kill
ln
......@@ -47,3 +46,4 @@ uniq
uptime
wc
which
xinstall
......@@ -9,7 +9,7 @@ CXXFLAGS?=$(OPTLEVEL)
CPPFLAGS:=$(CPPFLAGS) -DVERSIONSTR=\"$(VERSION)\"
CXXFLAGS:=$(CXXFLAGS) -Wall -Wextra -fno-exceptions -fno-rtti
BINARIES:=\
BINARIES_EXCEPT_INSTALL:=\
basename \
cat \
chmod \
......@@ -32,7 +32,6 @@ find \
head \
help \
init \
install-file \
kernelinfo \
kill \
ln \
......@@ -59,14 +58,18 @@ uptime \
wc \
which \
BINARIES=\
$(BINARIES_EXCEPT_INSTALL) \
xinstall
all: $(BINARIES)
.PHONY: all install clean
install: all
mkdir -p $(DESTDIR)$(BINDIR)
install $(BINARIES) $(DESTDIR)$(BINDIR)
install install-file $(DESTDIR)$(BINDIR)/install
install $(BINARIES_EXCEPT_INSTALL) $(DESTDIR)$(BINDIR)
install xinstall $(DESTDIR)$(BINDIR)/install
%: %.cpp
$(CXX) -std=gnu++11 $(CPPFLAGS) $(CXXFLAGS) $< -o $@
......
This diff is collapsed.
/*******************************************************************************
Copyright(C) Jonas 'Sortie' Termansen 2013.
Copyright(C) Jonas 'Sortie' Termansen 2013, 2014.
This program is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the Free
......@@ -15,7 +15,7 @@
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
install-file.cpp
xinstall.cpp
Installs files into system directories.
*******************************************************************************/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment