# # Makefile # # Install the templ program. # # Author: Oh Junseon # Date : $Date: 2000/09/12 12:41:59 $ # # $Revision: 1.3 $ # # Targets: # make all .......... Create ${PROG} [* default *] # make install ...... Install ${PROG} to ${DESTDIR} # make clean ........ Clean working files (e.g., .o) # make clobber ...... Cleanup (clean + ${PROG}) # # Folowing targets are only for developers # make update ....... CVS update (Repository -> current directory) # make commit ....... CVS commit (current directory -> Repository) # #CC = cc #CC = gcc MAN1 = README # If you want to show only default color , remove "-DANSI_COLOR" CFLAGS += -DANSI_COLOR PROG = templ DESTDIR = ${PREFIX} TEMPLS = t.c t.cc t.css t.html t.makefile t.pl t.pmakefile t.py t.sh t.txt t.sgml t.4th TEMPLDIR = ${DESTDIR}/share/templates RM = rm -f all: const.o templ.o templ const.o: const.c ${CC} -c const.c ${CFLAGS} templ.o: templ.c ${CC} -c templ.c ${CFLAGS} templ: const.o templ.o @echo; echo Linking templ.. ${CC} -o templ templ.o const.o ${CFLAGS} install: all strip ${PROG} install -c -m 755 ${PROG} ${DESTDIR}/bin if [ ! -d ${TEMPLDIR} ]; then mkdir -p ${TEMPLDIR}; fi (cd templates; for f in ${TEMPLS}; do install -c -m 644 $$f ${TEMPLDIR}; done) clean: ${RM} *.o clobber: clean ${RM} ${PROG} *.o # # Developer only targets # update: clobber cvs update commit: clobber cvs commit # # $Id: Makefile,v 1.3 2000/09/12 12:41:59 hollywar Exp $ # # Local Variables: # mode: makefile # mode: font-lock # version-control: t # delete-old-versions: t # End: # # -*- End-Of-File -*-