# ~jhs/public_html/gifs/card/Makefile
# See Also ~jhs/public_html/cv/Makefile
PSTOPNM_ARGS=-landscape
# PSTOPNM_ARGS : I want landscape for business cards,
# This will not damage any other .gif generation in this directory
# as the only .gif here are for cards.
# This PSTOPNM_ARGS is not yet being used properly by berklix2.mk
BERKLIX_ROTATE_PS2GIF=-90
SRCD1=${.CURDIR}/../../../job/groff/card/web1
SRCD2=${.CURDIR}/../../../job/groff/card/web2
SRCD3=${.CURDIR}/../../../job/groff/card/web3
SRCD4=${.CURDIR}/../../../job/groff/card/web4
# JJLATER scrap all .ps they waste space in ~/public_html/gifs/card & ~/public_html/cv
# Files Using Images
# cv/index.html: /gifs/card/card_front_top_x1_j.pdf
# cv/index.html: /gifs/card/card_front_top_x2_j.pdf
# cv/index.html: /gifs/card/card_front_top_x3_j.pdf
# cv/index.html: /gifs/card/card_front_top_x4_j.pdf
# cv/index.html: /gifs/card/card_back_x1.gif
# cv/personal.html: /gifs/card/card_front_top_x1_j.gif
# cv/index.html: /gifs/card/card_front_top_x1_j.gif
# cv/index.html: /gifs/card/card_front_top_x2_j.gif
# cv/index.html: /gifs/card/card_front_top_x3_j.gif
# cv/index.html: /gifs/card/card_front_top_x4_j.gif
# index.html: /gifs/card/card_front_top_x0.5_j.gif
# index.html: gifs/qr/berklix_com_jhs_vcard_bits_3.png
# cv/personal.html: ../gifs/qr/berklix_com_jhs_vcard_bits_3.png
# contact/index.html: ../gifs/qr/berklix_com_jhs_vcard_bits_3.png
# cv/index.html: ../gifs/qr/berklix_com_jhs_vcard_bits_3.png
# cv/index.html: /gifs/card/card_front_top_x1_j.ps
# cv/index.html: /gifs/card/card_front_top_x2_j.ps
# cv/index.html: /gifs/card/card_front_top_x3_j.ps
# cv/index.html: /gifs/card/card_front_top_x4_j.ps
# jlucas/index.html: /gifs/card/card_front_top_x2_l.ps
# pml/index.html: /gifs/card/card_front_top_x2_p.ps
# cv/index.html: ../gifs/qr/berklix_com_jhs_vcard_all.text
# cv/card_manufacture.html: ../gifs/qr/berklix_com_jhs_vcard_all.text
# Many are used on ~jhs/berklix/associates/formatting.html
# Few used elsewhere but they dont take that much space,
# & it seems better to have the entire set.
DEPS1 =
DEPS2 =
DEPS3 =
DEPS4 =
# DEPS1 += card_back_x1.ps
# DEPS1 += card_front_top_x0.5_c.gif
# DEPS1 += card_front_top_x0.5_f.gif
# DEPS1 += card_front_top_x0.5_g.gif
# DEPS1 += card_front_top_x0.5_h.gif
# DEPS1 += card_front_top_x0.5_j.gif
# DEPS1 += card_front_top_x0.5_l.gif
# DEPS1 += card_front_top_x0.5_m.gif
# DEPS1 += card_front_top_x0.5_n.gif
# DEPS1 += card_front_top_x0.5_p.gif
# DEPS1 += card_front_top_x0.5_s.gif
# DEPS1 += card_front_top_x1_c.ps
# DEPS1 += card_front_top_x1_f.ps
# DEPS1 += card_front_top_x1_g.ps
# DEPS1 += card_front_top_x1_h.ps
# DEPS1 += card_front_top_x1_j.ps
# DEPS1 += card_front_top_x1_l.ps
# DEPS1 += card_front_top_x1_m.gif
# DEPS1 += card_front_top_x1_m.pdf
# DEPS1 += card_front_top_x1_m.ps
# DEPS1 += card_front_top_x1_m.ps
# DEPS1 += card_front_top_x1_n.ps
# DEPS1 += card_front_top_x1_p.ps
# DEPS1 += card_front_top_x1_s.ps
# DEPS2 += card_back_x2.ps
# DEPS2 += card_front_top_x2_c.ps
# DEPS2 += card_front_top_x2_f.ps
# DEPS2 += card_front_top_x2_g.ps
# DEPS2 += card_front_top_x2_h.ps
# DEPS2 += card_front_top_x2_j.ps
# DEPS2 += card_front_top_x2_l.ps
# DEPS2 += card_front_top_x2_m.gif
# DEPS2 += card_front_top_x2_m.pdf
# DEPS2 += card_front_top_x2_m.ps
# DEPS2 += card_front_top_x2_m.ps
# DEPS2 += card_front_top_x2_n.ps
# DEPS2 += card_front_top_x2_p.ps
# DEPS2 += card_front_top_x2_s.ps
# DEPS3 += card_back_x3.ps
# DEPS3 += card_front_top_x3_c.ps
# DEPS3 += card_front_top_x3_f.ps
# DEPS3 += card_front_top_x3_g.ps
# DEPS3 += card_front_top_x3_h.ps
# DEPS3 += card_front_top_x3_j.ps
# DEPS3 += card_front_top_x3_l.ps
# DEPS3 += card_front_top_x3_m.gif
# DEPS3 += card_front_top_x3_m.pdf
# DEPS3 += card_front_top_x3_m.ps
# DEPS3 += card_front_top_x3_m.ps
# DEPS3 += card_front_top_x3_n.ps
# DEPS3 += card_front_top_x3_p.ps
# DEPS3 += card_front_top_x3_s.ps
# DEPS4 += card_back_x4.ps
# DEPS4 += card_front_top_x4_c.ps
# DEPS4 += card_front_top_x4_f.ps
# DEPS4 += card_front_top_x4_g.ps
# DEPS4 += card_front_top_x4_h.ps
# DEPS4 += card_front_top_x4_j.ps
# DEPS4 += card_front_top_x4_l.ps
# DEPS4 += card_front_top_x4_m.gif
# DEPS4 += card_front_top_x4_m.pdf
# DEPS4 += card_front_top_x4_m.ps
# DEPS4 += card_front_top_x4_m.ps
# DEPS4 += card_front_top_x4_n.ps
# DEPS4 += card_front_top_x4_p.ps
# DEPS4 += card_front_top_x4_s.ps
DEPS1 += card_back_x1.gif
DEPS1 += card_back_x1.pdf
DEPS1 += card_front_top_x1_c.gif
DEPS1 += card_front_top_x1_c.pdf
DEPS1 += card_front_top_x1_f.gif
DEPS1 += card_front_top_x1_f.pdf
DEPS1 += card_front_top_x1_g.gif
DEPS1 += card_front_top_x1_g.pdf
DEPS1 += card_front_top_x1_h.gif
DEPS1 += card_front_top_x1_h.pdf
DEPS1 += card_front_top_x1_j.gif
DEPS1 += card_front_top_x1_j.pdf
DEPS1 += card_front_top_x1_l.gif
DEPS1 += card_front_top_x1_l.pdf
# DEPS1 += card_front_top_x1_m.gif
# DEPS1 += card_front_top_x1_m.pdf
DEPS1 += card_front_top_x1_n.gif
DEPS1 += card_front_top_x1_n.pdf
DEPS1 += card_front_top_x1_p.gif
DEPS1 += card_front_top_x1_p.pdf
DEPS1 += card_front_top_x1_s.gif
DEPS1 += card_front_top_x1_s.pdf
DEPS2 += card_back_x2.gif
DEPS2 += card_back_x2.pdf
DEPS2 += card_front_top_x2_c.gif
DEPS2 += card_front_top_x2_c.pdf
DEPS2 += card_front_top_x2_f.gif
DEPS2 += card_front_top_x2_f.pdf
DEPS2 += card_front_top_x2_g.gif
DEPS2 += card_front_top_x2_g.pdf
DEPS2 += card_front_top_x2_h.gif
DEPS2 += card_front_top_x2_h.pdf
DEPS2 += card_front_top_x2_j.gif
DEPS2 += card_front_top_x2_j.pdf
DEPS2 += card_front_top_x2_l.gif
DEPS2 += card_front_top_x2_l.pdf
# DEPS2 += card_front_top_x2_m.gif
# DEPS2 += card_front_top_x2_m.pdf
DEPS2 += card_front_top_x2_n.gif
DEPS2 += card_front_top_x2_n.pdf
DEPS2 += card_front_top_x2_p.gif
DEPS2 += card_front_top_x2_p.pdf
DEPS2 += card_front_top_x2_s.gif
DEPS2 += card_front_top_x2_s.pdf
DEPS3 += card_back_x3.gif
DEPS3 += card_back_x3.pdf
DEPS3 += card_front_top_x3_c.gif
DEPS3 += card_front_top_x3_c.pdf
DEPS3 += card_front_top_x3_f.gif
DEPS3 += card_front_top_x3_f.pdf
DEPS3 += card_front_top_x3_g.gif
DEPS3 += card_front_top_x3_g.pdf
DEPS3 += card_front_top_x3_h.gif
DEPS3 += card_front_top_x3_h.pdf
DEPS3 += card_front_top_x3_j.gif
DEPS3 += card_front_top_x3_j.pdf
DEPS3 += card_front_top_x3_l.gif
DEPS3 += card_front_top_x3_l.pdf
# DEPS3 += card_front_top_x3_m.gif
# DEPS3 += card_front_top_x3_m.pdf
DEPS3 += card_front_top_x3_n.gif
DEPS3 += card_front_top_x3_n.pdf
DEPS3 += card_front_top_x3_p.gif
DEPS3 += card_front_top_x3_p.pdf
DEPS3 += card_front_top_x3_s.gif
DEPS3 += card_front_top_x3_s.pdf
DEPS4 += card_back_x4.gif
DEPS4 += card_back_x4.pdf
DEPS4 += card_front_top_x4_c.gif
DEPS4 += card_front_top_x4_c.pdf
DEPS4 += card_front_top_x4_f.gif
DEPS4 += card_front_top_x4_f.pdf
DEPS4 += card_front_top_x4_g.gif
DEPS4 += card_front_top_x4_g.pdf
DEPS4 += card_front_top_x4_h.gif
DEPS4 += card_front_top_x4_h.pdf
DEPS4 += card_front_top_x4_j.gif
DEPS4 += card_front_top_x4_j.pdf
DEPS4 += card_front_top_x4_l.gif
DEPS4 += card_front_top_x4_l.pdf
# DEPS4 += card_front_top_x4_m.gif
# DEPS4 += card_front_top_x4_m.pdf
DEPS4 += card_front_top_x4_n.gif
DEPS4 += card_front_top_x4_n.pdf
DEPS4 += card_front_top_x4_p.gif
DEPS4 += card_front_top_x4_p.pdf
DEPS4 += card_front_top_x4_s.gif
DEPS4 += card_front_top_x4_s.pdf
all: src_dirs xx ${DEPS1} ${DEPS2} ${DEPS3} ${DEPS4} card_front_top_x0.5_j.gif
@# Specifying
@# ${DEPS1} ${DEPS2} ${DEPS3} ${DEPS4}
@# checks they exist, even if some hosts do not have
@# ${SRCD1} ${SRCD2} ${SRCD3} ${SRCD4}
@# to rebuild
@# ${DEPS1} ${DEPS2} ${DEPS3} ${DEPS4}
@# (& are delivered by rdist).
card_front_top_x0.5_j.gif:
cp card_front_top_x1_j.gif ${.CURDIR}/$@
@echo "Please halve the size of $@, run:"
@echo " xv $@"
@# Add a CLI tool JJLATER
# See a similar use of TRANSPARENT in ~/job/inc/Makefile
TRANSPARENT=
TRANSPARENT += card_back_x1.gif
TRANSPARENT += card_back_x2.gif
TRANSPARENT += card_back_x3.gif
TRANSPARENT += card_back_x4.gif
TRANSPARENT += card_front_top_x0.5_j.gif
TRANSPARENT += card_front_top_x1_c.gif
TRANSPARENT += card_front_top_x1_f.gif
TRANSPARENT += card_front_top_x1_g.gif
TRANSPARENT += card_front_top_x1_h.gif
TRANSPARENT += card_front_top_x1_j.gif
TRANSPARENT += card_front_top_x1_l.gif
# TRANSPARENT += card_front_top_x1_m.gif
TRANSPARENT += card_front_top_x1_n.gif
TRANSPARENT += card_front_top_x1_p.gif
TRANSPARENT += card_front_top_x1_s.gif
TRANSPARENT += card_front_top_x2_c.gif
TRANSPARENT += card_front_top_x2_f.gif
TRANSPARENT += card_front_top_x2_g.gif
TRANSPARENT += card_front_top_x2_h.gif
TRANSPARENT += card_front_top_x2_j.gif
TRANSPARENT += card_front_top_x2_l.gif
# TRANSPARENT += card_front_top_x2_m.gif
TRANSPARENT += card_front_top_x2_n.gif
TRANSPARENT += card_front_top_x2_p.gif
TRANSPARENT += card_front_top_x2_s.gif
TRANSPARENT += card_front_top_x3_c.gif
TRANSPARENT += card_front_top_x3_f.gif
TRANSPARENT += card_front_top_x3_g.gif
TRANSPARENT += card_front_top_x3_h.gif
TRANSPARENT += card_front_top_x3_j.gif
TRANSPARENT += card_front_top_x3_l.gif
# TRANSPARENT += card_front_top_x3_m.gif
TRANSPARENT += card_front_top_x3_n.gif
TRANSPARENT += card_front_top_x3_p.gif
TRANSPARENT += card_front_top_x3_s.gif
TRANSPARENT += card_front_top_x4_c.gif
TRANSPARENT += card_front_top_x4_f.gif
TRANSPARENT += card_front_top_x4_g.gif
TRANSPARENT += card_front_top_x4_h.gif
TRANSPARENT += card_front_top_x4_j.gif
TRANSPARENT += card_front_top_x4_l.gif
# TRANSPARENT += card_front_top_x4_m.gif
TRANSPARENT += card_front_top_x4_n.gif
TRANSPARENT += card_front_top_x4_p.gif
TRANSPARENT += card_front_top_x4_s.gif
transparent:
for i in ${TRANSPARENT} ; \
do \
make `basename $$i .gif`.gif_transparent ; \
mv `basename $$i .gif`.gif_transparent $$i ; \
done
xx:
@echo next ${DEPS1} ${DEPS2} ${DEPS3} ${DEPS4}
src_dirs:
@echo "Starting $@"
@echo "Checking ${SRCD1}"
.if exists(${SRCD1}) #{
cd ${SRCD1} ; make
.else #}{
@echo "Warning: No ${SRCD1}"
@echo " Build on main host, if you want."
.endif #}
@echo "Finished ${SRCD1}"
@echo "Checking ${SRCD2}"
.if exists(${SRCD2}) #{
cd ${SRCD2} ; make
.else #}{
@echo "Warning: No ${SRCD2}"
@echo " Build on main host, if you want."
.endif #}
@echo "Finished ${SRCD2}"
@echo "Checking ${SRCD3}"
.if exists(${SRCD3}) #{
cd ${SRCD3} ; make
.else #}{
@echo "Warning: No ${SRCD3}"
@echo " Build on main host, if you want."
.endif #}
@echo "Finished ${SRCD3}"
@echo "Checking ${SRCD4}"
.if exists(${SRCD4}) #{
cd ${SRCD4} ; make
.else #}{
@echo "Warning: No ${SRCD4}"
@echo " Build on main host, if you want."
.endif #}
@echo "Finished ${SRCD4}"
@echo "Finished $@"
.if exists(${SRCD1}) #{
card_front_top_x1_c.ps: ${SRCD1}/card_front_top_c.ps
${COPY2}
card_front_top_x1_f.ps: ${SRCD1}/card_front_top_f.ps
${COPY2}
card_front_top_x1_g.ps: ${SRCD1}/card_front_top_g.ps
${COPY2}
card_front_top_x1_h.ps: ${SRCD1}/card_front_top_h.ps
${COPY2}
card_front_top_x1_j.ps: ${SRCD1}/card_front_top_j.ps
${COPY2}
card_front_top_x1_l.ps: ${SRCD1}/card_front_top_l.ps
${COPY2}
# card_front_top_x1_m.ps: ${SRCD1}/card_front_top_m.ps
# ${COPY2}
card_front_top_x1_n.ps: ${SRCD1}/card_front_top_n.ps
${COPY2}
card_front_top_x1_p.ps: ${SRCD1}/card_front_top_p.ps
${COPY2}
card_front_top_x1_s.ps: ${SRCD1}/card_front_top_s.ps
${COPY2}
card_back_x1.ps: ${SRCD1}/card_back_top.ps
${COPY2}
.endif #}
.if exists(${SRCD2}) #{
card_front_top_x2_c.ps: ${SRCD2}/card_front_top_c.ps
${COPY2}
card_front_top_x2_f.ps: ${SRCD2}/card_front_top_f.ps
${COPY2}
card_front_top_x2_g.ps: ${SRCD2}/card_front_top_g.ps
${COPY2}
card_front_top_x2_h.ps: ${SRCD2}/card_front_top_h.ps
${COPY2}
card_front_top_x2_j.ps: ${SRCD2}/card_front_top_j.ps
${COPY2}
card_front_top_x2_l.ps: ${SRCD2}/card_front_top_l.ps
${COPY2}
# card_front_top_x2_m.ps: ${SRCD2}/card_front_top_m.ps
# ${COPY2}
card_front_top_x2_n.ps: ${SRCD2}/card_front_top_n.ps
${COPY2}
card_front_top_x2_p.ps: ${SRCD2}/card_front_top_p.ps
${COPY2}
card_front_top_x2_s.ps: ${SRCD2}/card_front_top_s.ps
${COPY2}
card_back_x2.ps: ${SRCD2}/card_back_top.ps
${COPY2}
.endif #}
.if exists(${SRCD3}) #{
card_front_top_x3_c.ps: ${SRCD3}/card_front_top_c.ps
${COPY2}
card_front_top_x3_f.ps: ${SRCD3}/card_front_top_f.ps
${COPY2}
card_front_top_x3_g.ps: ${SRCD3}/card_front_top_g.ps
${COPY2}
card_front_top_x3_h.ps: ${SRCD3}/card_front_top_h.ps
${COPY2}
card_front_top_x3_j.ps: ${SRCD3}/card_front_top_j.ps
${COPY2}
card_front_top_x3_l.ps: ${SRCD3}/card_front_top_l.ps
${COPY2}
# card_front_top_x3_m.ps: ${SRCD3}/card_front_top_m.ps
# ${COPY2}
card_front_top_x3_n.ps: ${SRCD3}/card_front_top_n.ps
${COPY2}
card_front_top_x3_p.ps: ${SRCD3}/card_front_top_p.ps
${COPY2}
card_front_top_x3_s.ps: ${SRCD3}/card_front_top_s.ps
${COPY2}
card_back_x3.ps: ${SRCD3}/card_back_top.ps
${COPY2}
.endif #}
.if exists(${SRCD4}) #{
card_front_top_x4_c.ps: ${SRCD4}/card_front_top_c.ps
${COPY2}
card_front_top_x4_f.ps: ${SRCD4}/card_front_top_f.ps
${COPY2}
card_front_top_x4_g.ps: ${SRCD4}/card_front_top_g.ps
${COPY2}
card_front_top_x4_h.ps: ${SRCD4}/card_front_top_h.ps
${COPY2}
card_front_top_x4_j.ps: ${SRCD4}/card_front_top_j.ps
${COPY2}
card_front_top_x4_l.ps: ${SRCD4}/card_front_top_l.ps
${COPY2}
# card_front_top_x4_m.ps: ${SRCD4}/card_front_top_m.ps
# ${COPY2}
card_front_top_x4_n.ps: ${SRCD4}/card_front_top_n.ps
${COPY2}
card_front_top_x4_p.ps: ${SRCD4}/card_front_top_p.ps
${COPY2}
card_front_top_x4_s.ps: ${SRCD4}/card_front_top_s.ps
${COPY2}
card_back_x4.ps: ${SRCD4}/card_back_top.ps
${COPY2}
.endif #}
clean:
@echo "Suggestion: make extra_clean"
extra_clean:
.if exists(${SRCD1}) #{
rm -f ${DEPS1}
.else #}{
@echo "Warning: Not cleaning as no ${SRCD1} to rebuild from."
@echo "Suggestion: use rdist from main host"
.endif #}
.if exists(${SRCD2}) #{
rm -f ${DEPS2}
.else #}{
@echo "Warning: Not cleaning as no ${SRCD2} to rebuild from."
@echo "Suggestion: use rdist from main host"
.endif #}
.if exists(${SRCD3}) #{
rm -f ${DEPS3}
.else #}{
@echo "Warning: Not cleaning as no ${SRCD3} to rebuild from."
@echo "Suggestion: use rdist from main host"
.endif #}
.if exists(${SRCD4}) #{
rm -f ${DEPS4}
.else #}{
@echo "Warning: Not cleaning as no ${SRCD4} to rebuild from."
@echo "Suggestion: use rdist from main host"
.endif #}
.include