Add explicit build rule for clockloop
[khome.git] / Makefile
index b576a5c..ca39916 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,8 @@ MAKEFLAGS := --no-builtin-rules
 DEPS := $(wildcard deps/*)
 
 .PHONY: \
-       default \
+    default \
+    clean \
     $(DEPS) \
     deps \
     home \
@@ -24,7 +25,8 @@ default:
        @echo '================================================================================'
        @exit 1
 
-home: mpdconf
+home: mpdconf compiled
+       @cp  -Rp       bin           $(HOME)/
        @cp  -Rp  home/bin           $(HOME)/
        @cp  -Rp  home/lib           $(HOME)/
        @cp       home/.compton.conf $(HOME)/
@@ -43,6 +45,11 @@ mpdconf:
        @mkdir -p ~/var/run/mpd
        @cp home/.mpdconf $(HOME)/
 
+compiled:
+       mkdir -p bin
+       cd src && make
+       mv src/clockloop bin/
+
 font_cache:
        @fc-cache -fv
 
@@ -58,6 +65,9 @@ pkgs_golang: list pkgs-golang.list
 pkgs_ubuntu: list pkgs-ubuntu.list
        sudo apt install $(shell ./list pkgs-ubuntu.list)
 
+pkgs_ubuntu_debfiles: list pkgs-ubuntu-debfiles.list
+       ./install-debfiles pkgs-ubuntu-debfiles.list
+
 #
 # PIP
 #
@@ -134,3 +144,7 @@ diff:
        diff  $(HOME)/lib/login_variables.sh              home/lib/login_variables.sh              ||  true
        diff  $(HOME)/lib/login_variables_dpi_high.sh     home/lib/login_variables_dpi_high.sh     ||  true
        diff  $(HOME)/lib/login_variables_dpi_norm.sh     home/lib/login_variables_dpi_norm.sh     ||  true
+
+clean:
+       rm -rf ./debfiles
+       cd src && make clean
This page took 0.025206 seconds and 4 git commands to generate.