mirror of
https://github.com/thetechprepper/emcomm-tools-os-community.git
synced 2026-09-17 15:41:44 -04:00
fldigi - Add custom et-portaudio comment to system-wide installer
This commit is contained in:
@@ -4,11 +4,22 @@ LDFLAGS = -lportaudio -lasound
|
||||
|
||||
TARGET = et-portaudio
|
||||
SRC = main.c
|
||||
VERSION=1.0.0
|
||||
INSTALL_DIR = /opt/et-portaudio-$(VERSION)/bin
|
||||
|
||||
.PHONY: install
|
||||
|
||||
all: $(TARGET)
|
||||
|
||||
$(TARGET): $(SRC)
|
||||
$(CC) $(CFLAGS) -o $(TARGET) $(SRC) $(LDFLAGS)
|
||||
|
||||
install: $(TARGET)
|
||||
@echo "Installing $(TARGET) to $(INSTALL_DIR)..."
|
||||
@mkdir -p $(INSTALL_DIR)
|
||||
@cp $(TARGET) $(INSTALL_DIR)/
|
||||
@chmod 755 $(INSTALL_DIR)/$(TARGET)
|
||||
@echo "Done."
|
||||
|
||||
clean:
|
||||
rm -f $(TARGET) *.o
|
||||
|
||||
@@ -24,3 +24,9 @@ exit status of 1.
|
||||
``bash
|
||||
make
|
||||
```
|
||||
|
||||
## Install
|
||||
|
||||
```bash
|
||||
sudo make install
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user