[fpc-pascal] Trying to make a small makefile with fpcmake

Alexandre Leclerc alexandre.leclerc at gmail.com
Thu Jul 13 16:49:33 CEST 2006


Hi all,

I would like to create a small makefile to clean my source code.
Eventually I also want to compile my application. (The software is a
Lazarus project; I'm under win32).

In the following structure I made two Makefile.fpc:

./Makefile.fpc
./bin/Makefile.fpc

Code of ./Makefile.fpc:
[target]
dirs=bin

[rules]
clean: clean
  $(MAKE) -C bin clean

Code of ./bin/Makefile.fpc:
[clean]
files=$(wildcard ./*$(OEXT)) $(wildcard ./*$(PPUEXT)) $(wildcard ./*$(RSTEXT))


I compile both files with in ./ :
fpcmake -r

Now when I execute, I get a problem:
make clean
makefile:1341: *** missing separator.  Stop.

-- 
Alexandre Leclerc



More information about the fpc-pascal mailing list