Remove note, improve makefile
This commit is contained in:
parent
66dbedad82
commit
e4758c0f9b
|
@ -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
|
||||||
|
|
1
src/ln.c
1
src/ln.c
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue