summaryrefslogtreecommitdiff
path: root/common.each.head.mk
blob: e3a269e4534cce18b624c91019af57d715e0f32a (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 /%,$(_am_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)