.SUFFIXES: .PL .pl .html .HTML .CF .cf
.PL.pl:
../subst $> > $@
.CF.cf:
../subst $> > $@
.HTML.html:
../subst $> > $@
#-----------------------------------------------------------------------------
list:
@echo "Creating file list in `pwd`"
@cp /dev/null .filelist
@for i in $(FILELIST); do echo $$i >> .filelist; done
@for i in $(SUBDIRS); do \
cwd=`pwd`; cd $$i; $(MAKE) list; cd $$cwd; \
awk '{ print "'$$i'/" $$1 }' $$i/.filelist >> .filelist; \
done
.all: $(SHPRG) $(CFPRG)
.install: .all
for i in $(SHPRG); do\
install -c -m 500 $(BOWNER) $$i $(BINDIR)/$$i;\
done
for i in $(CFPRG); do\
[ -f $(CFDIR)/$$i ] || install -c -m 644 $(BOWNER) $$i $(CFDIR)/$$i;\
done
.clean:
rm -f .filelist core *.core .depend \
$(SHPRG) $(CFPRG)
# Shell modules
.ifdef SH01
$(SH01): $(SH01_O)
install -c $> $@
.endif
.ifdef SH02
$(SH02): $(SH02_O)
install -c $> $@
.endif
.ifdef SH03
$(SH03): $(SH03_O)
install -c $> $@
.endif
.ifdef SH04
$(SH04): $(SH04_O)
install -c $> $@
.endif
.ifdef SH05
$(SH05): $(SH05_O)
install -c $> $@
.endif
.ifdef SH06
$(SH06): $(SH06_O)
install -c $> $@
.endif
.ifdef SH07
$(SH07): $(SH07_O)
install -c $> $@
.endif