-
Notifications
You must be signed in to change notification settings - Fork 1
/
common.am
52 lines (42 loc) · 1.45 KB
/
common.am
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#
# ParaStation
#
# Copyright (C) 2012-2020 ParTec Cluster Competence Center GmbH, Munich
# Copyright (C) 2022-2024 ParTec AG, Munich
#
# This file may be distributed under the terms of the Q Public License
# as defined in the file LICENSE.QPL included in the packaging of this
# file.
#
AM_CPPFLAGS = -I$(top_srcdir)/include -DNDEBUG
subst_verbose = $(subst_verbose_$(V))
subst_verbose_ = $(subst_verbose_$(AM_DEFAULT_VERBOSITY))
subst_verbose_0 = @echo " SUBST " $(@F);
do_subst = sed \
-e 's,[@]bindir[@],$(bindir),g' \
-e 's,[@]configdir[@],$(configdir),g' \
-e 's,[@]docdir[@],$(docdir),g' \
-e 's,[@]includedir[@],$(includedir),g' \
-e 's,[@]libdir[@],$(libdir),g' \
-e 's,[@]mandir[@],$(mandir),g' \
-e 's,[@]prefix[@],$(prefix),g' \
-e 's,[@]pkgdatadir[@],$(pkgdatadir),g' \
-e 's,[@]pkglibexecdir[@],$(pkglibexecdir),g' \
-e 's,[@]sbindir[@],$(sbindir),g' \
-e 's,[@]scriptsdir[@],$(scriptsdir),g' \
-e 's,[@]sysconfdir[@],$(sysconfdir),g' \
-e 's,[@]localstatedir[@],$(localstatedir),g' \
-e 's,[@]psconfigdumpsdir[@],$(psconfigdumpsdir),g'
%: %.in
$(subst_verbose)$(do_subst) < $^ > $@ && chmod --reference $^ $@
pamconfdir = $(sysconfdir)/pam.d
slurmlibdir = $(libdir)/slurm
psgwlibdir = $(libexecdir)/psgw
psacctlibdir = $(libexecdir)/psaccount
jaillibdir = $(libexecdir)/jail
# should be $(libdir)/psmgmt-plugins or similar
plugindir = $(prefix)/plugins
# also very non-standard
configdir = $(prefix)/config
# dito
scriptsdir = $(prefix)/scripts