Patch #: 00 Type: unofficial update Priority: none Reported: Jiro TOYODA Archived: solaris.ims.ac.jp:/pub/qcpe/mopac7/mopac7.patch.unoff.gnu-make Application: 'patch -p < mopac7.patch.unoff.gnu-make' Summary: Makefile for GNU make . File: mopac7/Makefile *** mopac7/Makefile.orig Tue Jan 26 09:11:48 1993 --- mopac7/Makefile Thu May 26 10:59:02 1994 *************** *** 7,29 **** # make Makes the MOPAC file # make clean Clean up disk to minimum config # ! FFLAGS = -O -c -static HDRS = SIZES ! SRCS:sh = ls *.f OBJS = $(SRCS:.f=.o) ! SIZEDEPSRC:sh = grep -l -i ' INCLUDE ' *.f; true SIZEDEPEND = $(SIZEDEPSRC:.f=.o) ! mopac.exe: SIZES $(OBJS) ! @echo -n "Loading mopac.exe ... " ! f77 -O $(OBJS) -o mopac.exe @echo "done" clean: ! rm -f $(OBJS) ! $(SIZEDEPEND): $$< $(HDRS) ! $(FC) $(FFLAGS) $< ### --- 7,47 ---- # make Makes the MOPAC file # make clean Clean up disk to minimum config # ! FFLAGS = -O -c -static HDRS = SIZES ! SRCS := $(shell ls *.f) OBJS = $(SRCS:.f=.o) ! SIZEDEPSRC := $(shell grep -l -i ' INCLUDE ' *.f; true) SIZEDEPEND = $(SIZEDEPSRC:.f=.o) + MOPAC = MOPAC + MOPACSHELL = mopac.csh + BINDIR = /usr/local/bin + OWNER = root.bin ! $(MOPAC): SIZES $(OBJS) ! @echo -n "Loading $@ ... " ! f77 -O $(OBJS) -o $@ @echo "done" clean: ! $(RM) $(OBJS) *.trace core + cleandepend: + $(RM) $(SIZEDEPEND) *.trace core ! cleanall: clean ! $(RM) $(MOPAC) ! ! deinstall: ! $(RM) $(BINDIR)/$(MOPAC) $(BINDIR)/$(MOPACSHELL) ! ! install: $(MOPAC) $(MOPACSHELL) ! strip $(MOPAC) ! chmod 755 $(MOPAC) $(MOPACSHELL) ! chown $(OWNER) $(MOPAC) $(MOPACSHELL) ! /bin/cp -p $(MOPAC) $(BINDIR)/$(MOPAC) ! /bin/cp -p $(MOPACSHELL) $(BINDIR)/$(MOPACSHELL) ! ! $(SIZEDEPEND): $(HDRS) ###