-indent: ${OBJS}
- cc ${CFLAGS} -o indent ${OBJS}
-
-clean:
- rm -f ${OBJS} indent core
-
-.DEFAULT:
- sccs get $<
-
-install: indent
- install -s indent ${DESTDIR}/usr/ucb/indent
-
-depend:
- cc -M ${SRCS} | \
- awk '{ if ($$1 != prev) { if (rec != "") print rec; \
- rec = $$0; prev = $$1; } \
- else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \
- else rec = rec " " $$2 } } \
- END { print rec }' >makedep
- echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep
- echo '$$r makedep' >> eddep
- echo 'w' >>eddep
- cp Makefile Makefile.bak
- ed - Makefile < eddep
- rm eddep makedep
- echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile
- echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile
- echo '# see make depend above' >> Makefile
-
-# DO NOT DELETE THIS LINE -- make depend uses it
-
-indent.o: indent.c ./indent_globs.h /usr/include/stdio.h ./indent_codes.h
-io.o: io.c ./indent_globs.h /usr/include/stdio.h
-lexi.o: lexi.c ./indent_globs.h /usr/include/stdio.h ./indent_codes.h
+all: indent
+
+indent: ${OBJS} ${LIBC}
+ ${CC} -o $@ ${CFLAGS} ${OBJS}
+
+clean: FRC
+ rm -f ${OBJS} core indent
+
+depend: FRC
+ mkdep ${CFLAGS} ${SRCS}
+
+install: FRC
+ install -s -o bin -g bin -m 755 indent ${DESTDIR}/usr/ucb/indent
+
+lint: FRC
+ lint ${CFLAGS} ${SRCS}
+
+tags: FRC
+ ctags ${SRCS}
+
+FRC:
+
+# DO NOT DELETE THIS LINE -- mkdep uses it.
+# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
+
+indent.o: indent.c indent_globs.h /usr/include/stdio.h indent_codes.h
+io.o: io.c indent_globs.h /usr/include/stdio.h
+lexi.o: lexi.c indent_globs.h /usr/include/stdio.h indent_codes.h