Commit 473d2525 authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Start of a proper makefile with an install target.

parent 434a2a10
SUSCRIPTS = mkprojdir
INSTALL = install -c
INSTALL_BINDIR = /usr/testbed/bin
all: $(BINS)
install: $(addprefix $(INSTALL_BINDIR)/, $(SCRIPTS)) \
$(addprefix $(INSTALL_BINDIR)/, $(SUSCRIPTS))
@echo "Don't forget to do a post-install as root"
@echo "Installing $<"
-mkdir -p $(INSTALL_BINDIR)
$(INSTALL) $< $@
chown root $(INSTALL_BINDIR)/mkprojdir
chmod u+s $(INSTALL_BINDIR)/mkprojdir
rm -f *.o $(BINS) core
Supports Markdown
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