ENOSIG Discussie (threads)


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

.if defined in GNU and BSD make


Hi there,

While learning GNU make but at the same time using a tutorial that uses
BSD make, I stumble on the following error (in Dutch) when running make:

   Makefile:5: *** ontbrekend scheidingsteken.  Stop.

#start Makefile form BSD make tutorial
SUBDIR= dir1 dir2 dir3
 
all:
        @echo "make all" in `pwd`
.if defined(SUBDIR) && !empty(SUBDIR)
        @for subdir in ${SUBDIR}; do \
                        (cd $$subdir; ${MAKE} all); \
        done
 
.endif

It seems that I should put some sort of seperation mark in line 5. I
can't find a solution in the GNU make manual; help would be appreciated.

Gegroet,
Ronald



<<signature.asc>>


Follow-ups:


[ Date Index] [ Thread Index]