2018-02-05 07:39:01 +00:00
|
|
|
## Process this file with automake to produce Makefile.in
|
|
|
|
## vim: set noet :
|
|
|
|
|
2018-02-24 03:05:41 +00:00
|
|
|
include verbatim-data.mk
|
|
|
|
|
2018-02-05 07:39:01 +00:00
|
|
|
SUBDIRS = kconfig
|
2018-02-22 07:34:58 +00:00
|
|
|
|
|
|
|
bin_SCRIPTS = ct-ng
|
2018-04-05 06:08:48 +00:00
|
|
|
CLEANFILES = ct-ng bash-completion/ct-ng docs/ct-ng.1
|
2018-06-07 00:52:17 +00:00
|
|
|
EXTRA_DIST = bootstrap ct-ng.in bash-completion/ct-ng.in \
|
2018-11-27 07:50:47 +00:00
|
|
|
docs/ct-ng.1.in packages maintainer testing
|
2018-04-04 07:07:45 +00:00
|
|
|
|
|
|
|
if INSTALL_BASH_COMPLETION
|
2018-04-05 06:08:48 +00:00
|
|
|
compdir = @BASH_COMPLETION_DIR@
|
|
|
|
comp_SCRIPTS = bash-completion/ct-ng
|
2018-04-04 07:07:45 +00:00
|
|
|
endif
|
2018-02-22 07:34:58 +00:00
|
|
|
|
2018-03-31 20:12:54 +00:00
|
|
|
man1_MANS = docs/ct-ng.1
|
|
|
|
|
2019-04-04 23:43:51 +00:00
|
|
|
# paths.sh and configure.in are generated by configure
|
2018-11-27 22:27:24 +00:00
|
|
|
nobase_dist_pkgdata_DATA = $(verbatim_data)
|
2019-04-04 23:43:51 +00:00
|
|
|
nobase_nodist_pkgdata_DATA = paths.sh config/configure.in
|
2018-02-24 03:05:41 +00:00
|
|
|
|
2018-04-05 06:37:54 +00:00
|
|
|
# ct-ng, as renamed by the installation
|
|
|
|
ctng_progname = `echo ct-ng | sed '$(transform)'`
|
|
|
|
|
2018-04-03 07:01:17 +00:00
|
|
|
USER_MANUAL_FILES = \
|
|
|
|
docs/manual/1_Introduction.md \
|
|
|
|
docs/manual/2_Installation.md \
|
|
|
|
docs/manual/3_Configuration.md \
|
|
|
|
docs/manual/4_Building.md \
|
|
|
|
docs/manual/5_Toolchain_Usage.md \
|
|
|
|
docs/manual/6_Toolchain_Types.md \
|
|
|
|
docs/manual/7_Contributing.md \
|
|
|
|
docs/manual/8_Internals.md \
|
|
|
|
docs/manual/9_Toolchain_Construction.md \
|
|
|
|
docs/manual/A_Credits.md \
|
|
|
|
docs/manual/B_Known_issues.md \
|
|
|
|
docs/manual/C_Setup_OS.md \
|
|
|
|
docs/manual/D_Tutorials_features.md
|
|
|
|
|
|
|
|
if INSTALL_USER_MANUAL
|
|
|
|
doc_DATA = $(USER_MANUAL_FILES)
|
|
|
|
else
|
|
|
|
doc_DATA = docs/MANUAL_ONLINE
|
|
|
|
endif
|
2018-03-31 20:12:54 +00:00
|
|
|
|
2018-02-22 07:34:58 +00:00
|
|
|
do_subst = ( @SED@ \
|
|
|
|
-e 's,[@]docdir[@],$(docdir),g' \
|
2018-03-18 04:43:24 +00:00
|
|
|
-e 's,[@]pkgdatadir[@],$(pkgdatadir),g' \
|
|
|
|
-e 's,[@]pkglibexecdir[@],$(pkglibexecdir),g' \
|
2018-04-05 06:37:54 +00:00
|
|
|
-e 's,[@]progname[@],'$(ctng_progname)',g' \
|
2018-02-22 07:34:58 +00:00
|
|
|
| $(SHELL) config.status --file=- )
|
|
|
|
|
2018-03-18 04:43:24 +00:00
|
|
|
ct-ng: ct-ng.in Makefile
|
|
|
|
$(AM_V_GEN)$(do_subst) < $< >$@-t && chmod a-w,a+x $@-t && mv -f $@-t $@
|
2018-03-31 20:12:54 +00:00
|
|
|
|
2018-04-04 07:07:45 +00:00
|
|
|
docs/ct-ng.1: docs/ct-ng.1.in Makefile
|
2018-03-31 20:12:54 +00:00
|
|
|
$(AM_V_GEN)$(MKDIR_P) docs && $(do_subst) < $< >$@-t && mv -f $@-t $@
|
|
|
|
|
2018-04-05 06:08:48 +00:00
|
|
|
bash-completion/ct-ng: bash-completion/ct-ng.in Makefile
|
|
|
|
$(AM_V_GEN)$(MKDIR_P) bash-completion && $(do_subst) < $< >$@-t && mv -f $@-t $@
|
2018-04-04 07:07:45 +00:00
|
|
|
|
2018-04-05 06:37:54 +00:00
|
|
|
# automake doesn't offer an option to compress manpages, do it after installation
|
2018-04-07 19:00:24 +00:00
|
|
|
# Also, lintian is picky about execute-bit on the scripts
|
2018-04-05 06:37:54 +00:00
|
|
|
install-data-hook:
|
2018-04-07 19:00:24 +00:00
|
|
|
rm -f $(DESTDIR)$(man1dir)/$(ctng_progname).1.gz
|
2018-04-05 06:37:54 +00:00
|
|
|
gzip -9 $(DESTDIR)$(man1dir)/$(ctng_progname).1
|
2018-09-27 06:54:55 +00:00
|
|
|
chmod a+x $(DESTDIR)$(pkgdatadir)/scripts/config.guess
|
|
|
|
chmod a+x $(DESTDIR)$(pkgdatadir)/scripts/config.sub
|
2018-11-12 09:15:58 +00:00
|
|
|
rm -f $(DESTDIR)$(pkgdatadir)/LICENSE
|
|
|
|
ln -s COPYING $(DESTDIR)$(pkgdatadir)/LICENSE
|
2018-04-09 03:42:07 +00:00
|
|
|
if INSTALL_BASH_COMPLETION
|
2018-09-27 06:54:55 +00:00
|
|
|
chmod a-x $(DESTDIR)$(compdir)/$(ctng_progname)
|
2018-04-09 03:42:07 +00:00
|
|
|
endif
|
2018-04-05 06:37:54 +00:00
|
|
|
|
|
|
|
uninstall-hook:
|
|
|
|
rm -f $(DESTDIR)$(man1dir)/$(ctng_progname).1.gz
|
|
|
|
|
2018-11-28 05:55:42 +00:00
|
|
|
dist-hook: fetch-docs create-symlinks gen-tarball-version
|
2018-06-07 00:52:17 +00:00
|
|
|
|
|
|
|
.PHONY: fetch-docs
|
|
|
|
fetch-docs: maintainer/download-docs.sh
|
2018-04-03 07:01:17 +00:00
|
|
|
$< $(top_distdir) $(USER_MANUAL_FILES)
|
2018-06-07 00:52:17 +00:00
|
|
|
|
2018-11-28 05:55:42 +00:00
|
|
|
.PHONY: create-symlinks
|
|
|
|
create-symlinks:
|
|
|
|
ln -s COPYING $(top_distdir)/LICENSE
|
|
|
|
|
2018-06-07 00:52:17 +00:00
|
|
|
.PHONY: gen-tarball-version
|
|
|
|
gen-tarball-version:
|
|
|
|
echo $(VERSION) > $(distdir)/.tarball-version
|
2018-09-29 17:24:18 +00:00
|
|
|
|
2020-03-17 06:30:08 +00:00
|
|
|
DIGESTS ?= md5 sha1 sha512
|
|
|
|
USE_GPG ?= yes
|
2018-09-29 17:24:18 +00:00
|
|
|
|
|
|
|
dist-create-release: distcheck
|
|
|
|
for a in $(DIST_ARCHIVES); do \
|
|
|
|
for d in $(DIGESTS); do \
|
|
|
|
$${d}sum $${a} > $${a}.$${d}; \
|
|
|
|
done; \
|
|
|
|
if [ "$(USE_GPG)" = "yes" ]; then \
|
|
|
|
gpg --detach-sign $${a}; \
|
|
|
|
fi; \
|
|
|
|
done
|