Skip to content
Snippets Groups Projects
Makefile 907 B
Newer Older
  • Learn to ignore specific revisions
  • teuben's avatar
    teuben committed
    # webpage update
    RDIR = teuben@apus:/apus1/nemo/local/www/amnh
    
    EXPORT = partiview*html partiview.ps partiview.sgml partiview.txt \
    
    pteuben's avatar
    pteuben committed
    	                partiview2.ps partiview.pdf
    
    teuben's avatar
    teuben committed
    
    help:
    	@echo all:  ps html
    	@echo export: copy EXPORT to RDIR
    	@echo ""
    	@echo EXPORT=$(EXPORT)
    	@echo RDIR=$(RDIR)
    
    
    pteuben's avatar
    pteuben committed
    .PHONY:  txt ps pdf html
    
    teuben's avatar
    teuben committed
    
    
    pteuben's avatar
    pteuben committed
    all:    txt ps pdf html 
    
    teuben's avatar
    teuben committed
    
    txt:
    	sgml2txt partiview.sgml
    
    ps:
    	sgml2latex partiview.sgml
    	dvips partiview -o
    
    	gzip -c partiview.ps > partiview.ps.gz
    
    teuben's avatar
    teuben committed
    	rm partiview.dvi
    
    teuben's avatar
    teuben committed
    
    
    pteuben's avatar
    pteuben committed
    # 	note ps2pfg as well as pstopdf exist
    pdf:
    	ps2pdf partiview.ps
    
    
    #		need psutils for pnsup (prints 2 pages on 1)
    ps2:	ps
    	psnup -2 partiview.ps > partiview2.ps
    
    
    
    teuben's avatar
    teuben committed
    html:
    	sgml2html partiview.sgml
    
    
    teuben's avatar
    teuben committed
    clean:
    
    	rm -f core *~  partiview.dvi partiview.ps
    
    teuben's avatar
    teuben committed
    
    
    teuben's avatar
    teuben committed
    cleanall: clean
    	rm -f partiview*.html partiview.txt partiview.ps.gz
    
    teuben's avatar
    teuben committed
    
    
    # merely to update the webpage (only useful for teuben right now)
    
    teuben's avatar
    teuben committed
    
    export:
    	scp -C $(EXPORT) $(RDIR)