Commit 7220b253 authored by Leigh Stoller's avatar Leigh Stoller

A few minor changes to support building in a separate object tree.

Almost there ...
parent 6db1a275
......@@ -53,8 +53,10 @@ distclean: clean
# avoids hitting miscellaneous wrong targets in other directories
# when configuring in the source directory.
#
vpath %.in $(SRCDIR)
vpath %.c $(SRCDIR)
vpath %.in $(SRCDIR)
vpath %.c $(SRCDIR)
vpath %.cc $(SRCDIR)
vpath % $(SRCDIR)
#
# Define rules which we blew away with .SUFFIXES
......
......@@ -12,10 +12,24 @@ all:
include $(TESTBED_SRCDIR)/GNUmakerules
FILES = tbstyle.css $(wildcard *.jpg *.gif *.html *.php3)
#
# Generate a list of all the files we want to install from the current
# directory and the source directory.
#
FILES = $(wildcard *.css *.jpg *.gif *.html *.php3)
FILES += $(wildcard $(SRCDIR)/*.css)
FILES += $(wildcard $(SRCDIR)/*.jpg)
FILES += $(wildcard $(SRCDIR)/*.gif)
FILES += $(wildcard $(SRCDIR)/*.html)
FILES += $(wildcard $(SRCDIR)/*.php3)
#
# Kill the directory part of the names. The vpath rule will do the rest.
#
ALLFILES = $(notdir $(FILES))
#
# Do not install by default
#
install:
real-install: $(addprefix $(INSTALL_WWWDIR)/, $(FILES))
real-install: $(addprefix $(INSTALL_WWWDIR)/, $(ALLFILES))
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