# ~/public_html/gifs/qr/Makefile_qr_shared
# ~/job/groff/card/common/Makefile_qr_shared ->
# ../../../../public_html/gifs/qr/Makefile_qr_shared
# Included by: ~/public_html/gifs/qr/Makefile
# Included by: ~jhs/job/groff/card/paper/Makefile
# Included by: ~jhs/job/groff/card/common/Makefile_web_inc
# Not yet used by: ~/job/groff/cv
MAKEFILE_QR=/home/jhs/job/groff/card/common/Makefile_qr_shared
TXT=text
# TXT Avoid "txt" in case berklix2.mk invokes inadvertent macros.
berklix_com_jhs_url.${TXT}: ${MAKEFILE_QR}
@echo "Started $@"
@# For: ~/public_html/cv/card_manufacture.html
echo "http://www.berklix.com/jhs/" > ${.CURDIR}/$@
echo "Text is: `cat ${.CURDIR}/$@`"
@echo "Finished $@"
berklix_com_jhs_url.png: berklix_com_jhs_url.${TXT}
@echo "Started $@"
@# For: ~/public_html/cv/card_manufacture.html
@# For: ~/public_html/cv/card_manufacture.lmth
@# For: ~/public_html/gifs/qr/Makefile
qrencode -s 3 -o $@ "`cat berklix_com_jhs_url.${TXT}`"
@# -s 1 is approriate for ~/job/groff/card/paper/
@echo "Finished $@"
berklix_com_jhs_url.eps: berklix_com_jhs_url.${TXT}
@echo "Started $@"
@# Dont create the .eps from a .png via .ps as the .ps
@# grows to a full page, so don't use
@# ps2epsi berklix_com_jhs_url.ps $@
@# using default rules in :
@# .png > .jpg> > .tif > .ps > .eps
@# instead generate .eps direct
qrencode -s 3 -o $@ -t EPS "`cat berklix_com_jhs_url.${TXT}`"
@echo "Finished $@"
# phone is set in both:
# common/Makefile_def_paper:phone=${TKOM_CARD_TEL}
# common/Makefile_def_web:phone=${TKOM_WEB_TEL}
.if exists ( inc/Makefile_personal )
# Link exists only in ~/job/groff/card/common/inc/Makefile_personal,
# not in ~/public_html/gifs/qr/
# ../common/Makefile_personal -> inc/Makefile_personal
Makefile_personal = ../common/Makefile_personal
.endif
.if exists ( ../common/Makefile_def_paper )
# File exists only in ~/job/groff/card/common/Makefile_def_paper,
# not in ~/public_html/gifs/qr/
# ../common/Makefile_personal -> inc/Makefile_personal
Makefile_def_paper = ../common/Makefile_def_paper
.endif
.if exists ( ../common/Makefile_inc )
# File exists only in ~/job/groff/card/common/Makefile_inc,
# not in ~/public_html/gifs/qr/
# ../common/Makefile_personal -> inc/Makefile_personal
Makefile_inc = ../common/Makefile_inc
.endif
# JJLATER: ~/public_html/gifs/qr/berklix_com_jhs_vcard_all.text
# should Not be built in ~/public_html/ as it does not have access to
# ${phone} ${mobile} , so they will be null,
# so qr/berklix_com_jhs_vcard_bits_[1-4].* will be less useful,
# and will also be smaller, upsetting layout of card.
berklix_com_jhs_vcard_all.${TXT}: ${MAKEFILE_QR} ${Makefile_personal} \
${Makefile_def_paper} ${Makefile_inc}
@echo "Started $@"
cp /dev/null ${.CURDIR}/$@
printf "BEGIN:VCARD\\n" >> ${.CURDIR}/$@
printf "VERSION:3.0\\n" >> ${.CURDIR}/$@
printf "N:Stacey;Julian H.;\\n" >> ${.CURDIR}/$@
printf "FN:Julian H. Stacey\\n" >> ${.CURDIR}/$@
printf "TITLE:Systems Engineer, Internet/ Unix\\n" \
>> ${.CURDIR}/$@
printf "TEL;TYPE=WORK;VOICE:+49 89 ${phone}\\n" >> ${.CURDIR}/$@
printf "TEL;TYPE=WORK;CELL:+49 175 ${mobile}\\n" >> ${.CURDIR}/$@
printf "EMAIL;TYPE=WORK:jhs@" >> ${.CURDIR}/$@
printf "berklix.com\\n" >> ${.CURDIR}/$@
@# printf "ADR;TYPE=INTL,POSTAL,WORK:;;" >> ${.CURDIR}/$@
@# printf "Some Str 0;Munich 8xxxx;Germany\\n" >> ${.CURDIR}/$@
printf "URL;TYPE=WORK:http://www.berklix.com/jhs/\\n" \
>> ${.CURDIR}/$@
printf "END:VCARD\\n" >> ${.CURDIR}/$@
@echo "Finished $@"
# RM=-rm -f
RM=true
# I would like to purge text as soon as each QR code is created, to
# avoid spammer harvesters, but I suspect the evaluation of what to
# make only happens once, per make invocation, so if I remove
# berklix_com_jhs_vcard_all.${TXT} before the end of run, then make
# breaks & things dont get built, so for now just dummy out the rm
# with true, & call rm berklix_com_jhs_vcard_all.${TXT} only once at
# the end whne everything is built. But how to ensure it is allways
# called at the end ?
berklix_com_jhs_vcard_bits_1.png: berklix_com_jhs_vcard_all.${TXT}
@echo "Started $@"
@# For: ~/public_html/gifs/qr/Makefile
qrencode -s 1 -o ${.CURDIR}/$@ \
"`cat berklix_com_jhs_vcard_all.${TXT}`"
${RM} berklix_com_jhs_vcard_all.${TXT}
@echo "Finished $@"
# berklix_com_jhs_vcard_bits_1.eps: berklix_com_jhs_vcard_all.${TXT}
# @echo "Started $@"
# @# For: ~/job/groff/card/common/card_front_all.l_rof
# qrencode -s 1 -o ${.CURDIR}/$@ -t EPS \
# "`cat berklix_com_jhs_vcard_all.${TXT}`"
# ${RM} berklix_com_jhs_vcard_all/.${TXT}
# @echo "Finished $@"
berklix_com_jhs_vcard_bits_2.png: berklix_com_jhs_vcard_all.${TXT}
@echo "Started $@"
@# For: ~/public_html/gifs/qr/Makefile
qrencode -s 2 -o ${.CURDIR}/$@ \
"`cat berklix_com_jhs_vcard_all.${TXT}`"
${RM} berklix_com_jhs_vcard_all.${TXT}
@echo "Finished $@"
berklix_com_jhs_vcard_bits_2.eps: berklix_com_jhs_vcard_all.${TXT}
@echo "Started $@"
@# For: ~/job/groff/card/common/card_front_all.l_rof
qrencode -s 2 -o ${.CURDIR}/$@ -t EPS \
"`cat berklix_com_jhs_vcard_all.${TXT}`"
${RM} berklix_com_jhs_vcard_all/.${TXT}
@echo "Finished $@"
berklix_com_jhs_vcard_bits_3.png: berklix_com_jhs_vcard_all.${TXT}
@echo "Started $@"
@# For: ~/public_html/contact/index.html
@# For: ~/public_html/contact/index.lmth
@# For: ~/public_html/cv/card_manufacture.html
@# For: ~/public_html/cv/card_manufacture.lmth
@# For: ~/public_html/cv/index.html
@# For: ~/public_html/cv/index.lmth
@# For: ~/public_html/cv/personal.html
@# For: ~/public_html/cv/personal.lmth
@# For: ~/public_html/index.lmth
@# For: ~/public_html/qr/index.html
@# For: ~/public_html/qr/index.lmth
qrencode -s 3 -o ${.CURDIR}/$@ \
"`cat berklix_com_jhs_vcard_all.${TXT}`"
${RM} berklix_com_jhs_vcard_all.${TXT}
@echo "Finished $@"
berklix_com_jhs_vcard_bits_3.eps: berklix_com_jhs_vcard_all.${TXT}
@echo "Started $@"
@# For: ~/job/badge.rof
@# For: ~/job/groff/card/common/card_front_all.l_rof
qrencode -s 3 -o ${.CURDIR}/$@ -t EPS \
"`cat berklix_com_jhs_vcard_all.${TXT}`"
${RM} berklix_com_jhs_vcard_all/.${TXT}
@echo "Finished $@"
berklix_com_jhs_vcard_bits_4.png: berklix_com_jhs_vcard_all.${TXT}
@echo "Started $@"
qrencode -s 4 -o ${.CURDIR}/$@ \
"`cat berklix_com_jhs_vcard_all.${TXT}`"
${RM} berklix_com_jhs_vcard_all.${TXT}
@echo "Finished $@"
berklix_com_jhs_vcard_bits_4.eps: berklix_com_jhs_vcard_all.${TXT}
@echo "Started $@"
@# For: ~/job/groff/card/common/card_front_all.l_rof
qrencode -s 4 -o ${.CURDIR}/$@ -t EPS \
"`cat berklix_com_jhs_vcard_all.${TXT}`"
${RM} berklix_com_jhs_vcard_all/.${TXT}
@echo "Finished $@"