summaryrefslogtreecommitdiff
path: root/certificate/drupal_workshop_template/Makefile
diff options
context:
space:
mode:
authorFOSSEE2016-08-04 14:48:07 +0530
committerFOSSEE2016-08-04 14:48:07 +0530
commit40222ea2da51de9a40bb793156ff48cd05bbbff4 (patch)
tree8d330144baa24f0ebb437c96634b6e585eabe722 /certificate/drupal_workshop_template/Makefile
parent9e117bffbc3c49d3a67b13c2d85216d4529de4ab (diff)
downloadcertificate-generator-40222ea2da51de9a40bb793156ff48cd05bbbff4.tar.gz
certificate-generator-40222ea2da51de9a40bb793156ff48cd05bbbff4.tar.bz2
certificate-generator-40222ea2da51de9a40bb793156ff48cd05bbbff4.zip
Drupal Workshop Certificate
Diffstat (limited to 'certificate/drupal_workshop_template/Makefile')
-rwxr-xr-xcertificate/drupal_workshop_template/Makefile36
1 files changed, 36 insertions, 0 deletions
diff --git a/certificate/drupal_workshop_template/Makefile b/certificate/drupal_workshop_template/Makefile
new file mode 100755
index 0000000..c741438
--- /dev/null
+++ b/certificate/drupal_workshop_template/Makefile
@@ -0,0 +1,36 @@
+# Makefile for Certificate
+
+# bashful package available @
+# http://www.ctan.org/tex-archive/macros/latex/contrib/bashful
+
+# pst-barcode package available @
+# http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-barcode
+
+# target is not a real file
+.PHONY: help certificate clean
+
+# following line is because on server texlive is not installed system-wide
+export PATH := /usr/local/texlive/2015/bin/x86_64-linux:$(PATH)
+# default help
+help:
+ @echo "current make version is: "$(MAKE_VERSION)
+ @echo "Please use \`make <target>' where <target> is one of"
+ @echo ""
+ @echo "participant_cert file_name=xyz Generate certificate."
+ @echo "clean clean all tmp and pdf files."
+ @echo "help Show this help."
+ @echo ""
+
+name = $(file_name)
+
+# certificate
+participant_cert: $(name).tex fossee-logo.png bashful.sty
+ pdflatex -shell-escape $(name).tex
+
+paper_cert: $(name).tex fossee-logo.png bashful.sty
+ pdflatex -shell-escape $(name).tex
+
+clean:
+ @echo "removing all tmp+pdf files"
+ -rm -rvf $(name)*.pdf *~ $(name).aux $(name).log $(name).tex *.vrb *.out *.toc *.nav *.snm
+ -rm -rvf *.std* *.sh