[GRASS-SVN] r73740 - in grass-promo/grassposter/2018_AGU_Software_Citation: . code

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Nov 30 12:32:32 PST 2018


Author: neteler
Date: 2018-11-30 12:32:32 -0800 (Fri, 30 Nov 2018)
New Revision: 73740

Added:
   grass-promo/grassposter/2018_AGU_Software_Citation/code/Makefile
Modified:
   grass-promo/grassposter/2018_AGU_Software_Citation/Makefile
   grass-promo/grassposter/2018_AGU_Software_Citation/README.txt
Log:
2018_AGU_Software_Citation: fixed Makefiles (simple working solution)

Modified: grass-promo/grassposter/2018_AGU_Software_Citation/Makefile
===================================================================
--- grass-promo/grassposter/2018_AGU_Software_Citation/Makefile	2018-11-30 20:03:29 UTC (rev 73739)
+++ grass-promo/grassposter/2018_AGU_Software_Citation/Makefile	2018-11-30 20:32:32 UTC (rev 73740)
@@ -1,12 +1,11 @@
 FILE=poster
 
-TEXDIR = code
-TEXFILES = $(shell ls $(TEXDIR)/*.tex)
-TEXPDF = $(patsubst %.tex, %.pdf, $(TEXFILES))
+SUBDIR=code
 
 all: $(FILE).pdf
 
 $(FILE).pdf: *.tex Makefile poster.bib
+	$(MAKE) -C $(SUBDIR)
 	make pdf
 	make pdf
 	@while grep ''Rerun to get' to get' $(FILE).log >/dev/null 2>&1 ; do \
@@ -19,15 +18,10 @@
 	# second compilation gets through (this is an workaround)
 	-pdflatex -interaction=nonstopmode $(FILE).tex
 	pdflatex -interaction=nonstopmode $(FILE).tex
+	bibtex $(FILE)
 
-fig: $(TEXPDF)
-
-$(TEXPDF): %.pdf: %.tex
-	pdflatex -interaction=nonstopmode -shell-escape -output-directory=$(TEXDIR) $<
-
 clean:
 	rm -f *~ *.aux *.log *.out *.toc *.bbl *.blg *-blx.bib *.ps *.pyg
-	rm -f $(TEXPDF) $(TEXDIR)/*.aux $(TEXDIR)/*.log
 
 distclean:
 	make clean

Modified: grass-promo/grassposter/2018_AGU_Software_Citation/README.txt
===================================================================
--- grass-promo/grassposter/2018_AGU_Software_Citation/README.txt	2018-11-30 20:03:29 UTC (rev 73739)
+++ grass-promo/grassposter/2018_AGU_Software_Citation/README.txt	2018-11-30 20:32:32 UTC (rev 73740)
@@ -8,7 +8,7 @@
 Fedora:
 
     dnf install texlive texlive-a0poster texlive-wrapfig \
-        texlive-standalone texlive-tikzposter texlive-xstring
+        texlive-standalone texlive-tikzposter texlive-preview texlive-xstring
 
 Debian/Ubuntu:
 

Added: grass-promo/grassposter/2018_AGU_Software_Citation/code/Makefile
===================================================================
--- grass-promo/grassposter/2018_AGU_Software_Citation/code/Makefile	                        (rev 0)
+++ grass-promo/grassposter/2018_AGU_Software_Citation/code/Makefile	2018-11-30 20:32:32 UTC (rev 73740)
@@ -0,0 +1,28 @@
+FILE=cff
+
+all: $(FILE).pdf
+
+$(FILE).pdf: *.tex Makefile
+	make pdf
+	make pdf
+	@while grep ''Rerun to get' to get' $(FILE).log >/dev/null 2>&1 ; do \
+		make pdf; \
+	done
+
+pdf:
+	# using - to ignore error from the first latex
+	# the error is caused by something related to hyperref and
+	# second compilation gets through (this is an workaround)
+	-pdflatex -interaction=nonstopmode $(FILE).tex
+	pdflatex -interaction=nonstopmode $(FILE).tex
+
+clean:
+	rm -f *~ *.aux *.log *.out *.toc *.bbl *.blg *-blx.bib *.ps *.pyg
+
+distclean:
+	make clean
+	rm -f $(FILE).pdf
+
+rasterized:
+	gs -sDEVICE=png16m -r400 -o poster.png poster.pdf
+	convert poster.png -rotate 90 poster_rasterized.pdf



More information about the grass-commit mailing list