Remove note, improve makefile

This commit is contained in:
call-cc 2020-06-02 16:28:20 -04:00
parent 66dbedad82
commit e4758c0f9b
2 changed files with 7 additions and 2 deletions

View File

@ -11,5 +11,11 @@ compile:
$(CC) -o rmdir rmdir.o $(CC) -o rmdir rmdir.o
$(CC) -o touch touch.o $(CC) -o touch touch.o
$(CC) -o yes yes.o $(CC) -o yes yes.o
clean:
objclean: *.o
rm *.o
clean: objclean
rm *.o cat dirname echo ln mkdir pwd rmdir touch yes rm *.o cat dirname echo ln mkdir pwd rmdir touch yes
.PHONY: clean objclean compile

View File

@ -12,7 +12,6 @@ main(int argc, char *argv[])
} }
int opts; int opts;
int fd; 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) while((opts = getopt(argc, argv, "s:")) != -1)
{ {
switch(opts) switch(opts)