Rev 13933 | Rev 14498 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
# Makefile for R for Windows Installersinclude ../MkRulesUNZIPDIR=unzipPREFIX=rw1030.PHONY: GA UZall: SetupR.exe miniR.exeold: R.ico GA UZ rwinst.exe# O1 for small rather than fastCFLAGS=-I../graphapp -I../../include -I$(UNZIPDIR)/windll -Wall -O1 -DRVER=\"$(PREFIX)\"GA:$(MAKE) -C ../graphappUZ:$(MAKE) -C $(UNZIPDIR) -f ../Makefile.unzipR.ico: ../front-ends/R.ico$(CP) -p ../front-ends/R.ico .rwico.o: rwico.rcrwinst.o: ../../include/Rversion.h ../graphapp/ga.h ../graphapp/graphapp.hrwinst.exe: rwinst.o rwico.o dounzip.o ../ga.a $(UNZIPDIR)/unzip32.a$(CC) -s -mwindows -o $@ $^ -lcomctl32clean:$(RM) R.ico *.o *~ \#*\# rwinst.exe-$(MAKE) -C $(UNZIPDIR) -f ../Makefile.unzip clean#======================================================================# section for JR software installer.RECOMMENDED=KernSmooth Matrix VR boot cluster foreign mgcv nlme rpart survival5IS: SetupR.exe# location where Inno Setup was installedISDIR=C:/packages/Inno# location where binary packages are keptPKGS=C:/R/Rdist/libsR.iss: JRins.pl ../$(PREFIX)b1.zip ../$(PREFIX)b2.zip ../$(PREFIX)h.zip \../$(PREFIX)ch.zip ../$(PREFIX)d1.zip ../$(PREFIX)d2.zip \../$(PREFIX)l.zip ../$(PREFIX)sp.zip ../$(PREFIX)w.zipunzip -qo ../$(PREFIX)b1unzip -qo ../$(PREFIX)b2unzip -qo ../$(PREFIX)hunzip -qo ../$(PREFIX)ch -d $(PREFIX)chunzip -qo ../$(PREFIX)d1 -d $(PREFIX)d1unzip -qo ../$(PREFIX)d2 -d $(PREFIX)d2unzip -qo ../$(PREFIX)l -d $(PREFIX)lunzip -qo ../$(PREFIX)sp -d $(PREFIX)spunzip -qo ../$(PREFIX)w -d $(PREFIX)wfor p in $(RECOMMENDED); do \unzip -qo $(PKGS)/$${p} -d $(PREFIX)/library; \donezip -rmq foo.zip $(PREFIX)/library/*/htmlunzip -qo foo -d $(PREFIX)wrm foo.zipzip -rmq foo.zip $(PREFIX)/library/*/chtmlunzip -qo foo -d $(PREFIX)chrm foo.zipzip -rmq foo.zip $(PREFIX)/library/*/latexunzip -qo foo -d $(PREFIX)lrm foo.zipperl JRins.pl $(PREFIX)SetupR.exe: R.iss"$(ISDIR)/iscc" R.iss > setupR.logRsmall.iss: JRsmall.pl ../$(PREFIX)b1.zip ../$(PREFIX)b2.zip \../$(PREFIX)h.zip ../$(PREFIX)ch.zip ../$(PREFIX)d1.ziprm -rf $(PREFIX)*unzip -qo ../$(PREFIX)b1unzip -qo ../$(PREFIX)b2unzip -qo ../$(PREFIX)hunzip -qo ../$(PREFIX)ch -d $(PREFIX)chunzip -qo ../$(PREFIX)d1 -d $(PREFIX)d1rm $(PREFIX)d1/$(PREFIX)/doc/manual/R-exts.pdfrm $(PREFIX)d1/$(PREFIX)/doc/manual/R-lang.pdffor p in $(RECOMMENDED); do \unzip -qo $(PKGS)/$${p} -d $(PREFIX)/library; \donerm -rf $(PREFIX)/library/*/html $(PREFIX)/library/*/latexrm -rf $(PREFIX)/library/rpart/Manuscriptrm -rf $(PREFIX)/library/survival5/docperl JRsmall.pl $(PREFIX)miniR.exe: Rsmall.iss"$(ISDIR)/iscc" Rsmall.iss > miniR.logISclean:rm -rf R.iss Rsmall.iss *.log $(PREFIX)*ISdistclean: IScleanrm -f SetupR.exe miniR*