Skip to content

Tag: makefile

Exclude list of file extensions from find in bash shell

I want to write a cleanup routine for my make file that removes every thing except the necessary source files in my folder. For example, my folder contains files with the following extensions: .f .f90 .F90 .F03 .o .h .out .dat .txt .hdf .gif. I know I can accomplish this with: Using negation, I can do this: B…

Helpp for install cstore_fdw

I’m actually trying to install sctore_fdw but I just have a little question for the installation. I follow a tutorial and it is asking to do this : you need to include the pg_config directory path in your make command This is my pg_config path: I have some difficulty with Linux and specifically with the…

Compiling Python 3.6: Can I delete src folder after make install?

On my ubuntu 16.04 I just executed Can I delete src/Python-3.6.0 folder? Answer @realtbo As you make installations using sudo command in LINUX, it is never suggested to delete those files. Any file which is in user is always meant to be kept alive. Deleting these files may cause your environment to break, whi…

Compiling standalone ASIO with Makefile on Linux

I’m trying to compile a small c++ program that captures an image from a camera using libv4l2 and then sends it over UDP to a separate computer using asio. The file structure of the project is: My Makefile for the project is: However, when I try to compile this, my compiler spits on dozens of undefined r…

Using sed with regex to replace text on OSX and Linux

I am trying to replace some strings inside a file with sed using Regular Expressions. To complicate the matter, this is being done inside a Makefile script that needs to work on both osx and linux. Specifically, within file.tex I want to replace with (xxx and yyy are just example text.) Note, xxx could contai…

LINUX GNU Create New user Postgres DB in Makefile

I’m new with Makefile. I need to automate create user for postgres terminal. I tried this example and it did not work for me: Neither @create user myusername; nor @/q works. When I ran make createuser and exit manually with q from postgres terminal, I receive this error: Answer When debugging makefiles,…

Makefile as simlink: not found

Is it possible to have a Makefile referenced by a simlink, and try calling action using make? I am experiencing that calling make in a directory where Makefile is a simlink, Makefile is not found. I have a need to reduce replication of Makefiles, and I would prefer using simlinks. Suggestions? Answer It shoul…