Commit 319e7ac5 authored by Leigh Stoller's avatar Leigh Stoller

Change to how webxxx.in scripts are generated. Better rules, less churning.

parent 304909ca
...@@ -48,13 +48,16 @@ post-install: ...@@ -48,13 +48,16 @@ post-install:
control-install: $(addprefix $(INSTALL_SBINDIR)/, $(SBIN_STUFF)) control-install: $(addprefix $(INSTALL_SBINDIR)/, $(SBIN_STUFF))
# This rule says what web* script depends on which installed binary. # This rule says what web* script depends on which installed binary directory.
$(LIBEXEC_STUFF): web%: $(INSTALL_SBINDIR)/% $(LIBEXEC_STUFF): $(INSTALL_SBINDIR)
# Just in case the dirs are not yet created,
$(INSTALL_SBINDIR):
# And then how to turn the template into the actual script. # And then how to turn the template into the actual script.
web%: $(TESTBED_SRCDIR)/WEBtemplate.in $(LIBEXEC_STUFF): $(TESTBED_SRCDIR)/WEBtemplate.in
@echo "Generating $@" @echo "Generating $@"
cat $< | sed -e 's,@PROGTOINVOKE@,$(word 2,$^),' > $@ cat $< | sed -e 's,@PROGTOINVOKE@,$(word 2,$^)/$@,' > $@
clean: clean:
rm -f *.o core rm -f *.o 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