forked from nakidai/mycfetch
Edit Makefile to be more simpler
parent
cb0f4619f4
commit
c120ca4e5a
10
Makefile
10
Makefile
|
@ -1,15 +1,11 @@
|
||||||
CC := cc
|
PREFIX ?= /usr/local
|
||||||
CFLAGS :=
|
|
||||||
|
|
||||||
all: mycfetch
|
all: mycfetch
|
||||||
|
|
||||||
mycfetch: main.c config.h
|
|
||||||
$(CC) main.c -o mycfetch $(CFLAGS)
|
|
||||||
|
|
||||||
install: mycfetch
|
install: mycfetch
|
||||||
cp mycfetch /usr/bin/mycfetch
|
install -m 644 mycfetch $(PREFIX)/bin/
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm mycfetch
|
rm -f mycfetch
|
||||||
|
|
||||||
.PHONY: all install clean
|
.PHONY: all install clean
|
||||||
|
|
Loading…
Reference in New Issue