Revision 4,
702 bytes
checked in by ajaworski, 13 years ago
(diff) |
Added modified SAGE sources
|
Rev | Line | |
---|
[4] | 1 | SHELL=/bin/bash |
---|
| 2 | SAGE_DIR = ../.. |
---|
| 3 | VIEWER_DIR = ./ImageViewer |
---|
| 4 | SERVER_DIR = ./FileServer |
---|
| 5 | PDF_DIR = ./PDFViewer |
---|
| 6 | |
---|
| 7 | |
---|
| 8 | # Macs dont have -u option on cp |
---|
| 9 | MACHINE=$(shell uname -s) |
---|
| 10 | ifeq ($(MACHINE), Darwin) |
---|
| 11 | CP=/bin/cp -fr |
---|
| 12 | else |
---|
| 13 | CP=/bin/cp -fru |
---|
| 14 | endif |
---|
| 15 | |
---|
| 16 | |
---|
| 17 | default: imageviewer pdfviewer |
---|
| 18 | |
---|
| 19 | install: imageviewer |
---|
| 20 | /bin/mkdir -p -m 775 $(SAGE_DIR)/bin/fileServer |
---|
| 21 | cd $(VIEWER_DIR); make install; cd - |
---|
| 22 | cd $(PDF_DIR); make install; cd - |
---|
| 23 | $(CP) $(SERVER_DIR)/*.py $(SERVER_DIR)/misc $(SAGE_DIR)/bin/fileServer |
---|
| 24 | |
---|
| 25 | imageviewer: |
---|
| 26 | cd $(VIEWER_DIR); make; cd - |
---|
| 27 | |
---|
| 28 | pdfviewer: |
---|
| 29 | cd $(PDF_DIR); make; cd - |
---|
| 30 | |
---|
| 31 | clean: |
---|
| 32 | /bin/rm -f *.o *~ |
---|
| 33 | cd $(VIEWER_DIR); make clean; cd - |
---|
| 34 | cd $(PDF_DIR); make clean; cd - |
---|
| 35 | |
---|
| 36 | |
---|
| 37 | .PHONY: imageviewer pdfviewer |
---|
| 38 | |
---|
Note: See
TracBrowser
for help on using the repository browser.