Commit d767c345 authored by Timothy Stack's avatar Timothy Stack

Add "version" file rule.

parent dfc41c50
...@@ -62,6 +62,9 @@ vpath % $(SRCDIR) $(MOSTLY_SRCDIRS) ...@@ -62,6 +62,9 @@ vpath % $(SRCDIR) $(MOSTLY_SRCDIRS)
%.o: %.cc %.o: %.cc
$(CXX) -c -o $@ $(CXXFLAGS) $< $(CXX) -c -o $@ $(CXXFLAGS) $<
%.o: %.C
$(CXX) -c -o $@ $(CXXFLAGS) $<
%_xdr.h: %.x %_xdr.h: %.x
rpcgen -h $< > $@ rpcgen -h $< > $@
...@@ -71,6 +74,9 @@ vpath % $(SRCDIR) $(MOSTLY_SRCDIRS) ...@@ -71,6 +74,9 @@ vpath % $(SRCDIR) $(MOSTLY_SRCDIRS)
%: %-debug %: %-debug
$(STRIP) -o $@$(EXE) $<$(EXE) $(STRIP) -o $@$(EXE) $<$(EXE)
%-version.c:
echo >$@ "char build_info[] = \"Built on `date` by `id -nu`@`hostname | sed 's/\..*//'`:`pwd`\";"
# #
# Rules to regen configure written files. # Rules to regen configure written files.
# #
......
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