Skip to content

Commit

Permalink
Fix Github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
chpock committed Apr 29, 2024
1 parent 8795290 commit 326a438
Showing 1 changed file with 30 additions and 10 deletions.
40 changes: 30 additions & 10 deletions Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ export WSLENV

#========================================================================
# TEA TARGETS. Please note that the "libraries:" target refers to platform
# independent files, and the "binaries:" target inclues executable programs and
# independent files, and the "binaries:" target includes executable programs and
# platform-dependent libraries. Modify these targets so that they install
# the various pieces of your package. The make and install rules
# for the BINARIES that you specified above have already been done.
Expand All @@ -215,6 +215,10 @@ libraries:
#========================================================================

doc:
# @echo "If you have documentation to create, place the commands to"
# @echo "build the docs in the 'doc:' target. For example:"
# @echo " xml2nroff sample.xml > sample.n"
# @echo " xml2html sample.xml > sample.html"

install: all install-binaries install-libraries install-doc

Expand All @@ -226,11 +230,11 @@ install-binaries: binaries install-lib-binaries install-bin-binaries
#========================================================================

install-libraries: libraries
@mkdir -p $(DESTDIR)$(includedir)
@$(INSTALL_DATA_DIR) "$(DESTDIR)$(includedir)"
@echo "Installing header files in $(DESTDIR)$(includedir)"
@list='$(PKG_HEADERS)'; for i in $$list; do \
echo "Installing $(srcdir)/$$i" ; \
$(INSTALL_DATA) $(srcdir)/$$i $(DESTDIR)$(includedir) ; \
$(INSTALL_DATA) $(srcdir)/$$i "$(DESTDIR)$(includedir)" ; \
done;

#========================================================================
Expand All @@ -239,24 +243,37 @@ install-libraries: libraries
#========================================================================

install-doc: doc
@mkdir -p $(DESTDIR)$(mandir)/mann
@$(INSTALL_DATA_DIR) "$(DESTDIR)$(mandir)/mann"
@echo "Installing documentation in $(DESTDIR)$(mandir)"
@list='$(srcdir)/doc/*.n'; for i in $$list; do \
echo "Installing $$i"; \
$(INSTALL_DATA) $$i $(DESTDIR)$(mandir)/mann ; \
$(INSTALL_DATA) $$i "$(DESTDIR)$(mandir)/mann" ; \
done

test: binaries libraries $(notdir $(PKG_TCL_SOURCES))
$(TCLSH) `@CYGPATH@ $(srcdir)/tests/all.tcl` $(TESTFLAGS)
$(TCLSH) `@CYGPATH@ $(srcdir)/tests/all.tcl` $(TESTFLAGS) \
-load "package ifneeded $(PACKAGE_NAME) $(PACKAGE_VERSION) \
[list load `@CYGPATH@ $(PKG_LIB_FILE)` [string totitle $(PACKAGE_NAME)]]"

shell: binaries libraries $(notdir $(PKG_TCL_SOURCES))
@$(TCLSH) $(SCRIPT)

bench-%: install
$(TCLSH) `@CYGPATH@ $(srcdir)/benchmark/$*.tcl`

gdb: $(notdir $(PKG_TCL_SOURCES))
$(TCLSH_ENV) gdb $(TCLSH_PROG) $(SCRIPT)
$(TCLSH_ENV) $(PKG_ENV) $(GDB) $(TCLSH_PROG) $(SCRIPT)

gdb-test: binaries libraries $(notdir $(PKG_TCL_SOURCES))
$(TCLSH_ENV) $(PKG_ENV) $(GDB) \
--args $(TCLSH_PROG) `@CYGPATH@ $(srcdir)/tests/all.tcl` \
$(TESTFLAGS) -singleproc 1 \
-load "package ifneeded $(PACKAGE_NAME) $(PACKAGE_VERSION) \
[list load `@CYGPATH@ $(PKG_LIB_FILE)` [string totitle $(PACKAGE_NAME)]]"

valgrind: binaries libraries $(notdir $(PKG_TCL_SOURCES))
$(TCLSH_ENV) $(PKG_ENV) $(VALGRIND) $(VALGRINDARGS) $(TCLSH_PROG) \
`@CYGPATH@ $(srcdir)/tests/all.tcl` $(TESTFLAGS)

valgrindshell: binaries libraries $(notdir $(PKG_TCL_SOURCES))
$(TCLSH_ENV) $(PKG_ENV) $(VALGRIND) $(VALGRINDARGS) $(TCLSH_PROG) $(SCRIPT)

depend:

Expand Down Expand Up @@ -314,6 +331,9 @@ package:
$(MAKE) install exec_prefix=./$(PACKAGE_ARCHIVE) prefix=./$(PACKAGE_ARCHIVE)
tar zcvf $(PACKAGE_ARCHIVE).tar.gz $(PACKAGE_ARCHIVE)

bench-%: $(notdir $(PKG_TCL_SOURCES))
$(TCLSH) `@CYGPATH@ $(srcdir)/benchmark/$*.tcl`

#========================================================================
# Distribution creation
# You may need to tweak this target to make it work correctly.
Expand Down

0 comments on commit 326a438

Please sign in to comment.