source: trunk/src/testing/app/FileViewer/Makefile @ 4

Revision 4, 702 bytes checked in by ajaworski, 13 years ago (diff)

Added modified SAGE sources

Line 
1SHELL=/bin/bash
2SAGE_DIR = ../..
3VIEWER_DIR = ./ImageViewer
4SERVER_DIR = ./FileServer
5PDF_DIR = ./PDFViewer
6
7
8# Macs dont have -u option on cp
9MACHINE=$(shell uname -s)
10ifeq ($(MACHINE), Darwin)
11        CP=/bin/cp -fr
12else
13        CP=/bin/cp -fru
14endif
15
16
17default: imageviewer pdfviewer
18
19install: 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
25imageviewer:
26        cd $(VIEWER_DIR); make; cd -
27
28pdfviewer:
29        cd $(PDF_DIR); make; cd -
30
31clean:
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.