summaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am10
1 files changed, 2 insertions, 8 deletions
diff --git a/Makefile.am b/Makefile.am
index c020d83..de6c6ad 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -40,9 +40,10 @@ SHPPFLAGS = \
-DSYSCONFDIR="$(sysconfdir)" \
-DMETADATA="$(METADATA)"
SHSOEXT = .shso
+LINK = printf "PACKAGE_VERSION='%s'\n" "$(PACKAGE_VERSION_GIT)" | \
+ '$(srcdir)/tools/shld.sh' -I '$(SH)' -o $@ config.sh -
LIBLINK = '$(srcdir)/tools/shld.sh' -o $@
-bin_SCRIPTS = $(bin_sources:.sh=)
libdata_DATA = lib/libopkbuild$(SHSOEXT)$(libopkbuild_shsoversion)
libopkbuild_sources =
EXTRA_libopkbuild_sources =
@@ -54,7 +55,6 @@ man3_MANS = $(man3_sources:.3in=.3)
locale_MESSAGES = $(locale_sources:.sh=.ms)
dist_pkgdata_DATA = optstring
CLEANFILES = \
- $(bin_SCRIPTS) \
$(libdata_DATA) \
$(libopkbuild_ldadd) \
$(man1_MANS) \
@@ -69,7 +69,6 @@ EXTRA_DIST = \
TODO \
autogen.sh \
mksysconf.in \
- $(bin_sources) \
$(libopkbuild_sources) \
$(man1_sources) \
$(man3_sources) \
@@ -160,11 +159,6 @@ lib/libopkbuild$(SHSOEXT)$(libopkbuild_shsoversion): $(libopkbuild_dependencies)
@rm -f lib/libopkbuild$(SHSOEXT)$(libopkbuild_shsoversion)
$(AM_V_CCLD)$(LIBLINK) $(libopkbuild_ldadd)
-.sh:
- $(AM_V_GEN)$(MKDIR_P) "$$(dirname $@)"
- $(AM_V_at)$(do_subst) $< >$@
- $(AM_V_at)chmod a+x $@
-
.sh.sho:
$(AM_V_GEN)$(MKDIR_P) "$$(dirname $@)"
$(AM_V_at)$(SH) -n $<