Search results

  1. W

    [Makefile] The apices inside a file are lost

    $ tree ├── makefile ├── template ├── var1 └── var2 $ cat var1 xxx="true" $ cat var2 yyy="false" $ cat template $config $ cat makefile var1 := $(shell cat var1) var2 := $(shell cat var2) default: sh -c "config='$(var1) $(var2)' envsubst < template" $ make sh -c "config='xxx="true"...
  2. W

    make is a utility for end users or for programmers/developers?

    making "prod"... Specifically? But your script is looking for "a" or "b". Which script? ...won't work...??? Which script?
  3. W

    make is a utility for end users or for programmers/developers?

    In this way they would end up in the directory ../prod (which is not desired). Meaning what? An "visual" example?
  4. W

    variables and commands into makefile

    Great!!! Thanks!!! Since we're here, could you answer here too? https://www.linux.org/threads/make-is-a-utility-for-end-users-or-for-programmers-developers.53813/page-3#post-252212
  5. W

    target with spaces into makefile

    $ tree ├── a b c └── makefile $ cat makefile xxx := $(shell echo "a b c") default: $(xxx) $ make make: *** No rule to make target 'a', needed by 'default'. Stop. Why?
  6. W

    variables and commands into makefile

    ok mmmhhh... Why? mmhhh... I did not understand
  7. W

    variables and commands into makefile

    $ ls `xdg-user-dir TEMPLATES` file1 file2 blabla... OK $ cat makefile aaa = `xdg-user-dir TEMPLATES` bbb = `ls $(aaa)` #ccc = `other-command $(aaa)` test: echo $(bbb) $ make echo `ls `xdg-user-dir TEMPLATES`` makefilexdg-user-dir TEMPLATES Why?
  8. W

    [make] use input/output files inside makefile

    First a few details $ tree ├── makefile ├── snippet.txt └── template.txt $ cat template.txt aaa $input bbb $ cat snippet.txt xxx $ cat makefile test: sh -c "input=$(cat snippet.txt) envsubst < template.txt > output2.txt" Let's do some tests $ input=$(cat snippet.txt) envsubst <...
  9. W

    [rsync] --backup and --backup-dir options

    $ tree └── orig └── file $ touch orig/file && rsync -ai --backup --backup-dir=orig~ orig backup created directory backup cd+++++++++ orig/ >f+++++++++ orig/file $ tree ├── backup │ └── orig │ └── file └── orig └── file $ touch orig/file && rsync -ai --backup --backup-dir=orig~...
  10. W

    include file with rsync

    I think we're not understanding each other very well... Instead of this result dest ├── invoice.pdf ├── private-resources │ └── attachment2.pdf └── receipt.pdf I would like this dest ├── invoice.pdf ├── attachment2.pdf └── receipt.pdf
  11. W

    include file with rsync

    ....mmmhhh.... tmp.lCjneYUOuY$ rsync -nai --include 'private-resources/attachment2.pdf' --exclude 'private-resources/*' \ --prune-empty-dirs --relative src/ dest/ >f+++++++++ src/invoice.pdf >f+++++++++ src/receipt.pdf cd+++++++++ src/private-resources/ >f+++++++++...
  12. W

    include file with rsync

    + tree src src ├── invoice.pdf ├── private-resources │ ├── attachment1.pdf │ ├── attachment2.pdf │ └── attachment3.pdf └── receipt.pdf + rsync -nai --include private-resources/attachment2.pdf --exclude 'private-resources/*' \ src/ \ dest >f+++++++++ invoice.pdf >f+++++++++...
  13. W

    make is a utility for end users or for programmers/developers?

    PREMISE Is it a good idea to use two separate directories (development directory and production/compiling/building directory)? Here is a concrete example # SOURCE : dev (the development directory) # DESTINATION: ../prod (the production/compiling/building directory) + cd dev +...
  14. W

    make is a utility for end users or for programmers/developers?

    OK mmmhhh... could you explain yourself a little better?
  15. W

    make is a utility for end users or for programmers/developers?

    Yes? No? Maybe? Who knows... Hope. I'm continuing to document myself, but for the moment no confirmation. Is it worth continuing? Honestly, I'm starting to get a little tired. Anyway https://docs.docker.com/reference/dockerfile/#user Could this be helpful...
  16. W

    make is a utility for end users or for programmers/developers?

    The docker link you suggested, leads to other links https://docs.docker.com/get-started/docker-concepts/the-basics/what-is-a-container/ https://docs.docker.com/get-started/docker-concepts/the-basics/what-is-an-image/...
  17. W

    make is a utility for end users or for programmers/developers?

    Very good!!! But I think there would be a post to review https://www.linux.org/threads/make-is-a-utility-for-end-users-or-for-programmers-developers.53813/page-2#post-251173 You can see some parts in red, and in general there are some salient parts of this discussion. Wouldn't it be...
  18. W

    make is a utility for end users or for programmers/developers?

    $ sudo grep secure_path /etc/sudoers Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin" So I should just comment out the line #Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin" Right?
  19. W

    make is a utility for end users or for programmers/developers?

    OK, but let's make it short this time? First I would like to understand which file needs to be modified. File time I read somewhere that you need to modify the file /etc/sudoers by giving the following command $ sudo visual Is that right? So if I do something dumb What do you mean. I...
Top