| 1 | BASH = @BASH_SHELL@ |
|---|
| 2 | |
|---|
| 3 | SVNVERSION := $(shell svnversion -n) |
|---|
| 4 | VERSION += ($(SVNVERSION)) |
|---|
| 5 | |
|---|
| 6 | bashcompdir = $(sysconfdir)/bash_completion.d |
|---|
| 7 | pkglibexecdir = $(libexecdir)/confman |
|---|
| 8 | sysconfdefaultsdir = $(sysconfdir)/defaults |
|---|
| 9 | localstaterundir = $(localstatedir)/run |
|---|
| 10 | |
|---|
| 11 | sbin_SCRIPTS = confman confadmin |
|---|
| 12 | pkglibexec_SCRIPTS = confexport \ |
|---|
| 13 | confsync \ |
|---|
| 14 | confaudit \ |
|---|
| 15 | conflock \ |
|---|
| 16 | abspath \ |
|---|
| 17 | confman_precommit |
|---|
| 18 | pkgdata_SCRIPTS = confmancommon.sh confmanlib.sh libfiledb.sh |
|---|
| 19 | dist_pkgdata_SCRIPTS = confmandoc.sh confadmindoc.sh |
|---|
| 20 | sysconf_DATA = confman.conf.sample |
|---|
| 21 | sysconfdefaults_DATA = confman.conf |
|---|
| 22 | dist_sysconfdefaults_DATA = recipe.template |
|---|
| 23 | bashcomp_DATA = confman_completion |
|---|
| 24 | man_MANS = confman.8 confman.conf.5 |
|---|
| 25 | dist_man_MANS = confadmin.8 \ |
|---|
| 26 | confaudit.8 \ |
|---|
| 27 | confexport.8 \ |
|---|
| 28 | confsync.8 |
|---|
| 29 | localstaterun_DATA = |
|---|
| 30 | |
|---|
| 31 | CLEANFILES = $(sbin_SCRIPTS) \ |
|---|
| 32 | $(pkglibexec_SCRIPTS) \ |
|---|
| 33 | $(pkgdata_SCRIPTS) \ |
|---|
| 34 | $(sysconf_DATA) \ |
|---|
| 35 | $(sysconfdefaults_DATA) \ |
|---|
| 36 | $(man_MANS) \ |
|---|
| 37 | $(bashcomp_DATA) |
|---|
| 38 | |
|---|
| 39 | EXTRA_DIST = abspath.in \ |
|---|
| 40 | confman.in \ |
|---|
| 41 | confexport.in \ |
|---|
| 42 | confsync.in \ |
|---|
| 43 | confadmin.in \ |
|---|
| 44 | confaudit.in \ |
|---|
| 45 | conflock.in \ |
|---|
| 46 | confman_precommit.in \ |
|---|
| 47 | confmancommon.sh.in \ |
|---|
| 48 | confmanlib.sh.in \ |
|---|
| 49 | confman.conf.in \ |
|---|
| 50 | confman.conf.sample.in \ |
|---|
| 51 | confman_completion.in \ |
|---|
| 52 | confman.8.in \ |
|---|
| 53 | confman.conf.5.in \ |
|---|
| 54 | libfiledb.sh.in \ |
|---|
| 55 | LICENSE |
|---|
| 56 | |
|---|
| 57 | do_subst = $(SED) -e 's,[@]datadir[@],$(datadir),g' \ |
|---|
| 58 | -e 's,[@]localstatedir[@],$(localstatedir),g' \ |
|---|
| 59 | -e 's,[@]localstaterundir[@],$(localstaterundir),g' \ |
|---|
| 60 | -e 's,[@]pkgdatadir[@],$(pkgdatadir),g' \ |
|---|
| 61 | -e 's,[@]pkglibexecdir[@],$(pkglibexecdir),g' \ |
|---|
| 62 | -e 's,[@]prefix[@],$(prefix),g' \ |
|---|
| 63 | -e 's,[@]sbindir[@],$(sbindir),g' \ |
|---|
| 64 | -e 's,[@]sysconfdir[@],$(sysconfdir),g' \ |
|---|
| 65 | -e 's,[@]sysconfdefaultsdir[@],$(sysconfdefaultsdir),g' \ |
|---|
| 66 | -e 's,[@]BASH[@],$(BASH),g' \ |
|---|
| 67 | -e 's,[@]SUDO[@],$(SUDO),g' \ |
|---|
| 68 | -e 's,[@]SVN[@],$(SVN),g' \ |
|---|
| 69 | -e 's,[@]SVNLOOK[@],$(SVNLOOK),g' \ |
|---|
| 70 | -e 's,[@]GREADLINK[@],$(GREADLINK),g' \ |
|---|
| 71 | -e 's,[@]WGET[@],$(WGET),g' \ |
|---|
| 72 | -e 's,[@]VERSION[@],$(VERSION),g' |
|---|
| 73 | |
|---|
| 74 | confman: confman.in Makefile |
|---|
| 75 | $(do_subst) < confman.in > confman |
|---|
| 76 | chmod +x confman |
|---|
| 77 | |
|---|
| 78 | confadmin: confadmin.in Makefile |
|---|
| 79 | $(do_subst) < confadmin.in > confadmin |
|---|
| 80 | chmod +x confadmin |
|---|
| 81 | |
|---|
| 82 | confexport: confexport.in Makefile |
|---|
| 83 | $(do_subst) < confexport.in > confexport |
|---|
| 84 | chmod +x confexport |
|---|
| 85 | |
|---|
| 86 | conflock: conflock.in Makefile |
|---|
| 87 | $(do_subst) < conflock.in > conflock |
|---|
| 88 | chmod +x conflock |
|---|
| 89 | |
|---|
| 90 | confsync: confsync.in Makefile |
|---|
| 91 | $(do_subst) < confsync.in > confsync |
|---|
| 92 | chmod +x confsync |
|---|
| 93 | |
|---|
| 94 | confaudit: confaudit.in Makefile |
|---|
| 95 | $(do_subst) < confaudit.in > confaudit |
|---|
| 96 | chmod +x confaudit |
|---|
| 97 | |
|---|
| 98 | abspath: abspath.in Makefile |
|---|
| 99 | $(do_subst) < abspath.in > abspath |
|---|
| 100 | chmod +x abspath |
|---|
| 101 | |
|---|
| 102 | confman_precommit: confman_precommit.in Makefile |
|---|
| 103 | $(do_subst) < confman_precommit.in > confman_precommit |
|---|
| 104 | chmod +x confman_precommit |
|---|
| 105 | |
|---|
| 106 | confmanlib.sh: confmanlib.sh.in Makefile |
|---|
| 107 | $(do_subst) < confmanlib.sh.in > confmanlib.sh |
|---|
| 108 | |
|---|
| 109 | confmancommon.sh: confmancommon.sh.in Makefile |
|---|
| 110 | $(do_subst) < confmancommon.sh.in > confmancommon.sh |
|---|
| 111 | |
|---|
| 112 | confman.conf: confman.conf.in Makefile |
|---|
| 113 | $(do_subst) < confman.conf.in > confman.conf |
|---|
| 114 | |
|---|
| 115 | confman.conf.sample: confman.conf.sample.in Makefile |
|---|
| 116 | $(do_subst) < confman.conf.sample.in > confman.conf.sample |
|---|
| 117 | |
|---|
| 118 | confman_completion: confman_completion.in Makefile |
|---|
| 119 | $(do_subst) < confman_completion.in > confman_completion |
|---|
| 120 | |
|---|
| 121 | confman.8: confman.8.in Makefile |
|---|
| 122 | $(do_subst) < confman.8.in > confman.8 |
|---|
| 123 | |
|---|
| 124 | confman.conf.5: confman.conf.5.in Makefile |
|---|
| 125 | $(do_subst) < confman.conf.5.in > confman.conf.5 |
|---|
| 126 | |
|---|
| 127 | libfiledb.sh: libfiledb.sh.in Makefile |
|---|
| 128 | $(do_subst) < libfiledb.sh.in > libfiledb.sh |
|---|
| 129 | |
|---|