70 |
|
|
71 |
# Copy the bintoken header file from the compiler directory |
# Copy the bintoken header file from the compiler directory |
72 |
|
|
73 |
btprolog.h: $(srcdir)/../compiler/btprolog.h |
ascConfig.h: $(srcdir)/../utilities/ascConfig.h |
74 |
$(CP) $(srcdir)/../compiler/btprolog.h . |
$(CP) $^ $@ |
75 |
|
|
76 |
|
%.h: $(srcdir)/../compiler/%.h |
77 |
|
$(CP) $^ $@ |
78 |
|
|
79 |
# Build a Makfile suitable for installing |
# Build a Makfile suitable for installing |
80 |
|
|
143 |
|
|
144 |
# Files to install |
# Files to install |
145 |
|
|
146 |
install-binaries:: btprolog.h Makefile.bt |
LIB_DIR_FILES = btprolog.h Makefile.bt instance_enum.h ascConfig.h |
147 |
|
|
148 |
|
install-binaries:: $(LIB_DIR_FILES) |
149 |
@if test ! -d $(LIB_DIR) ; then \ |
@if test ! -d $(LIB_DIR) ; then \ |
150 |
echo Making directory $(LIB_DIR) ; \ |
echo Making directory $(LIB_DIR) ; \ |
151 |
mkdir -p $(LIB_DIR) ; \ |
mkdir -p $(LIB_DIR) ; \ |
152 |
fi |
fi |
153 |
@for i in btprolog.h Makefile.bt /dev/null ; do \ |
@for i in $(LIB_DIR_FILES) /dev/null ; do \ |
154 |
if $(CMP) -s $$i $(LIB_DIR)/$$i ; then \ |
if $(CMP) -s $$i $(LIB_DIR)/$$i ; then \ |
155 |
echo "Skipping $$i (up to date)" ; \ |
echo "Skipping $$i (up to date)" ; \ |
156 |
elif test $$i != "/dev/null" ; then \ |
elif test $$i != "/dev/null" ; then \ |
160 |
done |
done |
161 |
|
|
162 |
uninstall-binaries:: |
uninstall-binaries:: |
163 |
@for i in btprolog.h Makefile.bt /dev/null ; do \ |
@for i in $(LIB_DIR_FILES) /dev/null ; do \ |
164 |
if test -f $(LIB_DIR)/$$i ; then \ |
if test -f $(LIB_DIR)/$$i ; then \ |
165 |
echo Removing $(LIB_DIR)/$$i ; \ |
echo Removing $(LIB_DIR)/$$i ; \ |
166 |
$(RM) $(LIB_DIR)/$$i ; \ |
$(RM) $(LIB_DIR)/$$i ; \ |
172 |
# Files, in addition to the default, to remove when we `make clean' |
# Files, in addition to the default, to remove when we `make clean' |
173 |
|
|
174 |
clean:: |
clean:: |
175 |
-$(RM) btprolog.h Makefile.bt *.so *.sl |
-$(RM) $(LIB_DIR_FILES) *.so *.sl |
176 |
|
|
177 |
|
|
178 |
|
|