mirror of
https://github.com/javalsai/lidm.git
synced 2025-08-30 18:08:00 +02:00
detects if systemd is there
This commit is contained in:
10
Makefile
10
Makefile
@@ -24,3 +24,13 @@ lidm: $(OBJ)
|
||||
.PHONY: clean
|
||||
clean:
|
||||
rm -f $(ODIR)/*.o *- li $(INCDIR)/*-
|
||||
|
||||
# Copy lidm to /usr/bin
|
||||
install: lidm
|
||||
install -m 755 lidm /usr/bin
|
||||
if command -v systemctl &> /dev/null; then \
|
||||
echo "Systemd exists, copying service file"; \
|
||||
cp assets/li.service /etc/systemd/system/; \
|
||||
else \
|
||||
echo "No systemd"; \
|
||||
fi
|
||||
|
Reference in New Issue
Block a user