Skip to content

Commit

Permalink
DO NOT MERGE: dummy depends package for DEMO
Browse files Browse the repository at this point in the history
This shows that the _env settings in depends only applies to the first
in a chain of commands.

Test with:

    make -C depends dummy_configured

It will error out because FOO does not exist
  • Loading branch information
dongcarl committed Aug 12, 2021
1 parent e614cc8 commit e233c6d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions depends/packages/dummy.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package=dummy
$(package)_version=3320100
$(package)_download_path=https://sqlite.org/2020/
$(package)_file_name=sqlite-autoconf-$($(package)_version).tar.gz
$(package)_sha256_hash=486748abfb16abd8af664e3a5f03b228e5f124682b0c942e157644bf6fff7d10

define $(package)_set_vars
$(package)_config_env+=FOO=BAR
endef

define $(package)_config_cmds
true && echo 'Attempting to print FOO env var' && printenv FOO && echo "FOO was just printed"
endef
2 changes: 1 addition & 1 deletion depends/packages/packages.mk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
packages:=boost libevent
packages:=boost libevent dummy

qrencode_packages = qrencode

Expand Down

0 comments on commit e233c6d

Please sign in to comment.