Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: d90027e0bb
Fetching contributors…

Cannot retrieve contributors at this time

36 lines (27 sloc) 1.056 kb
# Keep track of where we are and where we've been.
sp := $(sp).x
dirstack_$(sp) := $(d)
d := $(dir)
# Set up what goes into this target
SRCS_$(d) := $(d)/search.c
SRCS_$(d) := $(SRCS_$(d)) common/get_paths.c
ifeq ($(TARGET),win32)
SRCS_$(d) := $(SRCS_$(d)) common/getopt.c
OBJS_$(d) := $(SRCS_$(d):%.c=%.o)
TGTS_$(d) := $(d)/search$(BINSUFFIX)
CLEAN_$(d) := $(OBJS_$(d)) $(TGTS_$(d))
$(TGTS_$(d)): LL_TGT+=-lsqlite3
.PHONY: targets_$(d) install_$(d)
$(TGTS_$(d)): $(OBJS_$(d))
targets_$(d): $(TGTS_$(d))
install_$(d): $(TGTS_$(d))
mkdir -p "$(prefix)/bin"
@for BIN in $^; do cp -vp "$$BIN" "$(prefix)/bin/tve-`basename $$BIN`"; "$(STRIP)" "$(prefix)/bin/tve-`basename $$BIN`"; done
# Arrange for this target to be part of a global build
CLEAN := $(CLEAN) $(CLEAN_$(d))
targets: targets_$(d)
install: install_$(d)
# Keep track of where we are and where we've been
d := $(dirstack_$(sp))
sp := $(basename $(sp))
Jump to Line
Something went wrong with that request. Please try again.