Commit c82ac0dd authored by Leigh Stoller's avatar Leigh Stoller

Proper (mostly) makefile.

parent 8c00bd90
BINS = suexec
SCRIPTS = paperbag plasticwrap
CFLAGS = -O -g
INSTALL = install -c
INSTALL_BINDIR = /usr/testbed/bin
all: $(BINS)
suexec: suexec.c suexec.h
$(CC) $(CFLAGS) -o suexec suexec.c
install: $(addprefix $(INSTALL_BINDIR)/, $(BINS))
@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)/suexec
chmod u+s $(INSTALL_BINDIR)/suexec
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