/usr/lib/swi-prolog/Makefile is in swi-prolog-x 6.6.4-2ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | ################################################################
# Makefile for preparing/moving/installing the binary distribution of
# SWI-Prolog and/or XPCE
#
# Author: Jan Wielemaker
# E-mail: J.Wielemaker@cs.vu.nl
#
# Targets
# make (Re)makes SWI-Prolog startup file and XPCE
# precompiled Prolog files (QLF-files).
# make clean Remove XPCE QLF-files. All should work
# without them. Without QLF files loading
# is slower but development is better and
# relocating the system is more robust.
################################################################
MAKE=make
SWIPL=swipl
PLWINARG=
PL=bin/amd64/$(PLWINNAME)
PLARCH=amd64
INSTALL_PLARCH=amd64
EXEEXT=
BPL= bin/$(INSTALL_PLARCH)/$(SWIPL)$(EXEEXT) $(PLWINARG)
PWD=`pwd`
# Make this boot64 for 64-bit processors
STARTUP= boot32.prc
BOOTPLS= boot/apply.pl boot/autoload.pl \
boot/bags.pl boot/dwim.pl \
boot/history.pl boot/init.pl \
boot/load.pl boot/parms.pl \
boot/qlf.pl boot/syspred.pl boot/toplevel.pl \
boot/topvars.pl boot/predopts.pl
all: $(STARTUP) xpce-qlfs
$(STARTUP): $(BOOTPLS)
$(BPL) -f none -O -o $@ -b boot/init.pl
xpce-qlfs:
@PLBASE=$(PWD); \
if [ -d xpce ]; then \
echo $(MAKE) PL="$$PLBASE/$(BPL)"; \
(cd xpce/prolog/lib; $(MAKE) PL="$$PLBASE/$(BPL)"); \
fi
clean:
rm -f `find xpce/prolog -name '*.qlf' -print`
|