makefile

  1. D

    Other BSD Make

    Consider the following Makefile. In an attempt to create a uniform file that works with both GNU and BSD, the attempt failed. Ok let's stick with a purely BSD working solution. I want the Makefile to achieve two objectives: 1. Source and Object files are to be in different sub/directories 2...
  2. Y

    Other Makefile not seeing my files

    I have this issue with make that is driving me nuts. I have a directory with files Makefile2 and main.c, but the makefile doesn't see main.c: t14s% cd PCG t14s% ls -l Makefile2 main.c -rw-r--r-- 1 yousef yousef 24 Jul 23 01:59 Makefile2 -rw-r--r-- 1 yousef yousef 3198 Jul 22 08:18...
  3. language

    if !exists never sees file

    In a ports Makefile, the following if statement never evaluates to false, i.e. never thinks the file exists: pre-fetch: .if !exists(${DISTDIR}/${DIST_SUBDIR}/${MAVEN_CACHE_FILE}) ls -alh ${DISTDIR}/${DIST_SUBDIR}/${MAVEN_CACHE_FILE} ${MKDIR} ${DISTDIR}/${DIST_SUBDIR} # Do...
  4. Clockwork

    make[1]: cannot open Makefile.

    I want to try to make a port for my program that I recently drew in tcl. I will optimize the program code, so do not laugh. I've read the FreeBSD Porter Handbook but haven't figured out exactly what the problem is. Can anyone tell me what I'm doing wrong? Makefile: # $FreeBSD$ PORTNAME=...
  5. Steffen

    Solved man page in Makefile

    Hello, I am creating a new port. The program is written in Go and the source has a man page (1). You can find it here: https://github.com/steffenfritz/mxcheck I wrote a Makefile, make stage and make stage-qa are working without problems, everything's in place, i.e. the binary is in...
  6. J

    Port makefile: Use local copy of upstream source

    While developing the devel/qschematic port I had to perform some debugging on the upstream build system. At first, I created a separate branch in the upstream repository and used that branch in the port Makefile. However, I quickly determined that this is not a sustainable workflow so I started...
  7. sidetone

    Photo example of FreeBSD Ports. Re: graphics/blender

    Here is an example of a single FreeBSD port in 3 terminals in the screenshot. The ncurses menu on the left shows the menu after make config is run from the port directory. You can see the graphics/blender directory and a few files, including the Makefile in the top right terminal. In the bottom...
  8. D

    Other Target variable assignment in make

    I'd like to do the following target variable assignment in make. It works in GNU Make but not in BSD Make. test: clean debug_compile debug_compile: ERLCFLAGS += -DTEST debug_compile: compile compile_test; Make reports "don't know how to make ERLCFLAGS". Any suggestions would be appreciated.
  9. sidetone

    Adding NeXtaw option to ports as Athena Widgets, and porting to XCB

    I want to add Nextaw (x11-toolkits/neXtaw) options to applications that use Xaw (x11-toolkits/libXaw) in ports. I've thought about working on adding port customizations since starting the thread athena-xaw-implementations.81588. To start with, I learned a lot about adjusting Makefiles by using...
  10. fel1x

    Solved Make: Need an operator in .if

    HUGO_ARGS?= --verbose --minify ASCIIDOCTOR_CMD= ${LOCALBASE}/bin/asciidoctor ASCIIDOCTORPDF_CMD= ${LOCALBASE}/bin/asciidoctor-pdf ROUGE_CMD= ${LOCALBASE}/bin/rougify .if !exists(${ASCIIDOCTOR_CMD}) || !exists(${ASCIIDOCTORPDF_CMD}) || !exists({ROUGE_CMD}) @echo "Please install asciidoctor...
  11. Cath O'Deray

    Solved Linux 5.5.19 DRM or greater i.e. graphics/drm-devel-kmod on FreeBSD 13⋯

    Please: has anyone attempted to build a modified graphics/drm-devel-kmod on any build of FreeBSD 13? Most recently, <https://cgit.freebsd.org/ports/diff/graphics/drm-devel-kmod/Makefile?id=0e09699300d49bbd304b5be47462ef3b615202c3> bumped the minimum OSVERSION to 1400024. The local copy of...
  12. alemoppo

    makefile driver kernel out of src folder

    Hello! I would like to manage the source files in folders in the development of a kernel module. I'm trying to run the makefile with this setup: - Makefile + src - mySrc.c + obj + bin ... How can i build with this strucure? My makefile is actually (this run great in the same folder of the...
  13. D

    Solved Debugging Makefiles

    Hi everybody, I encounter difficulties to locate commands executed in their respective makefiles. I have tried for instance : $ make -d p I obtain something like this : ParseReadLine (121): 'CDIAGFLAGS+= -Wshadow' ParseReadLine (128): 'GNUSYSTEM_AUX_DIR?=${BSDSRCDIR}/share/gnu'...
  14. R

    Makefile USE_GITLAB

    Hello I need create Makefile to build forked port from my gitlab. I readied https://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/makefile-distfiles.html (5.4.4. USE_GITLAB) but it just make url to feth tar.gz via http link. It's not what i want. I don't have any tar.gz in my...
  15. tuaris

    Best way to patch absolute symlink path in Makefile.am

    I'm having trouble figuring out how to patch some Makefile.am files to fix the symlink paths during staging, make stage-qa displays these warnings: ====> Running Q/A tests (stage-qa) Warning: Bad symlink '/var/db/glusterd/hooks/1/delete/post/S57glusterfind-delete-post' pointing to an absolute...
  16. J

    C POSIX compliant Makefile - Pattern Rules?

    I'm trying to remove any implementation specific (GNU Make) details from my Makefiles but having a hard time fixing some issues. The structure of my projects is like so; myapp/ Makefile src/ foo/ foo1.c foo2.c bar/ bar1.c obj/ 1) The mere presence of an...
  17. driesm

    Solved Need some help with porting

    Hello guys, I've been working on a port recently but I'm having some issues. Porbably because of my inexperience with ports. I have the latter in the Makefile: obvious things do-install: ${MKDIR} ${STAGEDIR}${WWWDIR} cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}...
Back
Top