Skip to content

Commit

Permalink
update magic and hacker rulz in Makefile.example
Browse files Browse the repository at this point in the history
  • Loading branch information
lcn2 committed Jul 23, 2024
1 parent 08b7c0e commit e1906b3
Showing 1 changed file with 22 additions and 16 deletions.
38 changes: 22 additions & 16 deletions Makefile.example
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#
SHELL= bash


#######################
# common tool locations
#######################
Expand Down Expand Up @@ -169,14 +170,14 @@ try: ${PROG} ${DATA}
#
clean:
${RM} -f ${OBJ}
@-if [ -f indent.c ]; then \
@-if [[ -f indent.c ]]; then \
echo ${RM} -f indent.c; \
${RM} -f indent.c; \
fi

clobber: clean
${RM} -f ${TARGET}
@-if [ -e sandwich ]; then \
@-if [[ -e sandwich ]]; then \
${RM} -f sandwich; \
echo 'ate sandwich'; \
fi
Expand Down Expand Up @@ -207,8 +208,11 @@ indent.c: ${PROG}.c
fi


# NOTE: Don't worry if you don't understand stuff below
#
#############################################################
# NOTE: 'Don't Panic' if you don't understand the stuff below
#############################################################


##################
# 133t hacker rulz
##################
Expand All @@ -220,19 +224,21 @@ waste:
@echo $@

haste:
${MAKE} waste
@echo make waste
@${MAKE} waste

maker: haste
@echo 'Participate in a maker faire'
${MAKE} love
@echo make love
@${MAKE} love

easter_egg: maker
@echo "You are expected to often misunderstand this $${RANDOM} magic, Eggy!"
@echo "chongo '<was here>' /\\oo/\\"
@echo "p.s.: Careful with That Axe, Eugene!"

sandwich: easter_egg
@if [ `id -u` -eq 0 ]; then \
@if [[ $$(id -u) -eq 0 ]]; then \
echo 'Okay.'; \
echo "$${RANDOM}`date +%s`$${RANDOM}" > $@; \
else \
Expand All @@ -245,17 +251,17 @@ sandwich: easter_egg
# you might be confused different. :-)
#
supernova: sandwich
@-if [ -r .code_anal ]; then \
${RM} -f .code_anal_v6; \
@-if [[ -r .code_analysis ]]; then \
${RM} -f .code_analysis_v7; \
else \
echo "Planet deniers, like some members of the IAU, are so cute when they try to defend their logic"; \
fi
@echo "A $@ helps ${MAKE} the elements that help form planets"

deep_magic: supernova
@-if [ -r .code_anal ]; then \
ccode_analysis --deep_magic 7889066cdbdf09b0408021754586e895be641cc9be29e7eafd3ca65359541f17 \
--FNV1a_hash_512_bit -v2 "${PROG}" "${PROG}.c"; \
more_magic: supernova
@-if [[ -r .code_analysis ]]; then \
ccode_analysis --more_magic dd268dbcaac550362d98c384c4e576ccc8b1536847b6bbb31023b4c8caee0535 \
--FNV1a_hash_256_bit -v2 "${PROG}" "${PROG}.c"; \
else \
echo "Wrong! Do it again!"; \
sleep 1; \
Expand All @@ -264,9 +270,9 @@ deep_magic: supernova
echo "Wrong! Do it again!"; \
fi

magic: deep_magic
@-if [ -r .code_anal ]; then \
ccode_analysis --level 20003 --mode 5717175 --FNV1a_hash_512_bit -v2 "${PROG}" "${PROG}.c"; \
magic: more_magic
@-if [[ -r .code_analysis ]]; then \
ccode_analysis --level 20003 --mode 5718856 --FNV1a_hash_256_bit -v2 "${PROG}" "${PROG}.c"; \
else \
echo "If you don't eat yer meat, you can't have any pudding!"; \
echo "How can you have any pudding if you don't eat yer meat?!"; \
Expand Down

0 comments on commit e1906b3

Please sign in to comment.