Improve makefile and readme
This commit is contained in:
parent
7f4b114fee
commit
be98d6b2c5
2 changed files with 22 additions and 6 deletions
14
Makefile
14
Makefile
|
@ -4,10 +4,20 @@ LIBS = -lrlottie
|
|||
DEPS = lodepng.cpp
|
||||
TARGET = lfe
|
||||
|
||||
ifeq ($(PREFIX),)
|
||||
PREFIX := /usr/local
|
||||
endif
|
||||
|
||||
all: $(TARGET)
|
||||
|
||||
$(TARGET): $(TARGET).cpp
|
||||
$(CC) $(CFLAGS) -o $(TARGET) $(DEPS) $(TARGET).cpp $(LIBS)
|
||||
$(CC) $(CFLAGS) -o $(TARGET) $(DEPS) $(TARGET).cpp $(LIBS)
|
||||
|
||||
install: $(TARGET)
|
||||
install -m 644 $(TARGET) $(DESTDIR)$(PREFIX)/bin/
|
||||
|
||||
uninstall:
|
||||
rm -f $(DESTDIR)$(PREFIX)/bin/$(TARGET)
|
||||
|
||||
clean:
|
||||
$(RM) $(TARGET)
|
||||
$(RM) $(TARGET)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue