From e4758c0f9b0dac00ee92924b1408509555c00769 Mon Sep 17 00:00:00 2001 From: call-cc Date: Tue, 2 Jun 2020 16:28:20 -0400 Subject: [PATCH] Remove note, improve makefile --- src/Makefile | 8 +++++++- src/ln.c | 1 - 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/Makefile b/src/Makefile index 253a98c..92db4d4 100644 --- a/src/Makefile +++ b/src/Makefile @@ -11,5 +11,11 @@ compile: $(CC) -o rmdir rmdir.o $(CC) -o touch touch.o $(CC) -o yes yes.o -clean: + +objclean: *.o + rm *.o + +clean: objclean rm *.o cat dirname echo ln mkdir pwd rmdir touch yes + +.PHONY: clean objclean compile diff --git a/src/ln.c b/src/ln.c index d423506..1ce49f0 100644 --- a/src/ln.c +++ b/src/ln.c @@ -12,7 +12,6 @@ main(int argc, char *argv[]) } int opts; int fd; - /* I am aware that this doesn't conform to style, but it's the only option that actually works */ while((opts = getopt(argc, argv, "s:")) != -1) { switch(opts)