Commit 473d2525 authored by Leigh Stoller's avatar Leigh Stoller

Start of a proper makefile with an install target.

parent 434a2a10
SCRIPTS =
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"
$(INSTALL_BINDIR)/%: %
@echo "Installing $<"
-mkdir -p $(INSTALL_BINDIR)
$(INSTALL) $< $@
post-install:
chown root $(INSTALL_BINDIR)/mkprojdir
chmod u+s $(INSTALL_BINDIR)/mkprojdir
clean:
rm -f *.o $(BINS) core
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