summaryrefslogtreecommitdiff
path: root/build-aux/Makefile.each.head/20-libretools.mk
blob: 90e9bda409e6358243799b075b22a6ec99625f7a (plain)
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
35
pkgconfdir    = $(sysconfdir)/libretools.d
pkgdocdir     = $(docdir)/libretools
pkglibexecdir = $(libexecdir)/libretools

# Detect things about the directory we're in ####################################

srcfiles-ignore/$(srcdir) = $(addsuffix /%,$(at.subdirs/$(@D)))

ifeq ($(wildcard $(topsrcdir)/.git),)
include $(srcdir)/.srcfiles.mk
else
$(srcdir)/.srcfiles.mk: FORCE
	@echo srcfiles = $(filter-out $(srcfiles-ignore/$(@D)),$(shell cd $(@D) && git ls-files)) | $(WRITE_IFCHANGED) $@
-include $(srcdir)/.srcfiles.mk
endif

detect-ignore      =
detect-ignore-exec =
detect-ignore-conf =
detect-ignore-ronn =
detect-ignore-md   = HACKING.md
detect-ignore-sh   =

devtools-files =

libretools-srcs = $(detect-all)
libretools-mans = $(patsubst %.ronn,%,$(detect-ronn))
libretools-bins = $(detect-exec)
libretools-libexecs =
libretools-libs = $(detect-sh)
libretools-docs = $(detect-md) $(detect-ronn)
libretools-confs = $(detect-conf)

libretools-files = $(libretools-mans) $(libretools-bins) $(libretools-libexecs) $(libretools-libs) $(libretools-docs) $(libretools-confs)
pots = $(libretools-bins) $(libretools-libexecs) $(libretools-libs)