Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: d90027e0bb
Fetching contributors…

Cannot retrieve contributors at this time

file 34 lines (27 sloc) 1.056 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34

# 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
endif

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))
Something went wrong with that request. Please try again.