archie/prospero/Makefile.in

76 lines
1.7 KiB
Makefile
Raw Normal View History

2024-05-27 16:13:40 +02:00
#
# Copyright (c) 1991-1994 by the University of Southern California
#
# For copying and distribution information, please see the file
# <usc-license.h>.
#
#
# This is the top level Makefile for the Prospero Directory Service.
# Include configuration options.
include Makefile.config
# Programs that live in subdirectories, and have makefiles of their own.
# The ordering is important here; libraries are built before the parts of
# Prospero that have to be linked with them are.
# put OPTIONAL_LIB_SUBDIRS at the end here, because lib/psrv/wais_gw contains
# executables that are needed by WAIS.
LIB_SUBDIRS = \
lib/pfs \
lib/ardp \
lib/psrv \
lib/filters \
2024-05-27 22:02:30 +02:00
$(OPTIONAL_LIB_SUBDIRS)
2024-05-27 16:13:40 +02:00
BIN_SUBDIRS = \
2024-05-27 22:02:30 +02:00
$(OPTIONAL_BIN_SUBDIRS) \
2024-05-27 16:13:40 +02:00
server \
2024-05-27 22:02:30 +02:00
user
2024-05-27 16:13:40 +02:00
SUBDIRS = \
2024-05-27 22:02:30 +02:00
$(LIB_SUBDIRS) \
2024-05-27 16:13:40 +02:00
$(BIN_SUBDIRS)
all: all_subdirs
install: installdirs installfiles
installdirs:
2024-05-27 21:40:27 +02:00
# -mkdir $(DIR755) $(DIR1777)
# -chown $(OWNER) $(DIR755) $(DIR1777)
# -chgrp $(GROUP) $(DIR755) $(DIR1777)
# -chmod 755 $(DIR755)
# -chmod 1777 $(DIR1777)
2024-05-27 16:13:40 +02:00
# alternative version of above if you have a good version of (INSTALL) available:
2024-05-27 21:50:50 +02:00
-for i in $(DIR755) ; do \
$(INSTALL) -d -o $(OWNER) -g $(GROUP) -m 755 $$i ; \
2024-05-27 21:40:27 +02:00
done
2024-05-27 21:50:50 +02:00
-for i in $(DIR1777) ; do \
$(INSTALL) -d -o $(OWNER) -g $(GROUP) -m 1777 $$i ; \
2024-05-27 21:40:27 +02:00
done
2024-05-27 16:13:40 +02:00
installfiles:
2024-05-27 22:02:30 +02:00
-for i in $(BIN_SUBDIRS); do \
(cd $$i && $(MAKE) install) ; \
done
2024-05-27 16:13:40 +02:00
2024-05-27 18:00:10 +02:00
#
# Recursively `depend' each module.
#
all_depend:
2024-05-27 18:06:52 +02:00
set -u ; find $(PROSPERO_ROOT) -name Makefile.in -print | sed 's/\(.*\)\.in/cp \1.in \1/' | sh
# for dir in $(SING_LEVEL_MODULES) ; do \
# (cd $$dir/$(SYSTYPE) && $(MAKE) depend) ; \
# done
for dir in $(SUBDIRS) ; do \
2024-05-27 18:00:10 +02:00
(cd $$dir && $(MAKE) depend) ; \
done
2024-05-27 16:13:40 +02:00
# Dependencies