Skip to content
This repository has been archived by the owner on Dec 30, 2024. It is now read-only.

Improve next/Makefile.example #2765

Merged
merged 1 commit into from
Dec 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 4 additions & 28 deletions next/Makefile.example
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ COTHER=

# Optimization
#
OPT= -O3 -g3
OPT= -O3

# Default flags for ANSI C compilation
#
Expand Down Expand Up @@ -181,11 +181,12 @@ everything: all alt
@${TRUE}


# one suggested way to run the program
# suggested way(s) to run the program
#
try: ${PROG} ${DATA}
@# remove these comments
@# notice how we do not assume that . is a component of the $PATH environment variable
@# you may use the try.sh script if you have one
@# change this next line as needed
./${PROG} some arguments

Expand All @@ -202,37 +203,12 @@ clean:
fi

clobber: clean
${RM} -f ${TARGET}
${RM} -f ${TARGET} *.dSYM
@-if [[ -e sandwich ]]; then \
${RM} -f sandwich; \
echo 'ate sandwich'; \
fi

# Do not install prog, please!
#
install:
@echo "Dr. Spock says that is not logical!"
@${TRUE}

# you may be able to misunderstand the source by reading indent.c
#
indent.c: ${PROG}.c
@if which "${GINDENT}" >/dev/null 2>&1; then \
echo ${RM} -f $@; \
${RM} -f $@; \
echo "${GINDENT} < $< > $@"; \
${GINDENT} < $< > $@; \
elif which "${INDENT}" >/dev/null 2>&1; then \
echo ${RM} -f $@; \
${RM} -f $@; \
echo "${INDENT} < $< > $@"; \
${INDENT} < $< > $@; \
else \
echo "no indent tool found, ident $< yourself, sorry"; \
echo "exit 17"; \
exit 17; \
fi


######################################
# optional include of 1337 hacker rulz
Expand Down
Loading