summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 2 insertions, 15 deletions
diff --git a/Makefile b/Makefile
index 7310bd9..3568ed7 100644
--- a/Makefile
+++ b/Makefile
@@ -11,31 +11,18 @@ SH = alarm backlight bell ccgp cfg chmodef curlqb dateft dirnameall gita gitfork
PACMAN_HOOKS = setcap-intel_gpu_top.hook setcap-iotop-c.hook setcap-nethogs.hook
PREFIX = /usr/local
-all: dynotify
-
-dynotify: dynotify.c
-# https://stackoverflow.com/q/28533059
-# https://stackoverflow.com/q/3220277
- cc -Wall $$(pkg-config --cflags --libs libnotify libcurl json-c) -o $@ $<
-
-clean:
- rm -f dynotify
-
-# I think `install: all` makes make all first, since all is `all: dynotify`, it will make dynotify first, then install all
-install: all
+install:
mkdir -p ${DESTDIR}${PREFIX}/bin
# Another way would be define and use INSTALL INSTALL_PROGRAM INSTALL_DATA instead of use `cp -f` or `install` directly, see `info make`
for i in ${SH}; do cp -f sh/$$i ${DESTDIR}${PREFIX}/bin; done
mkdir -p ${DESTDIR}${PREFIX}/share/libalpm/hooks
# /usr/local/share/libalpm/hooks default does not work, need to change pacman.conf
for i in ${PACMAN_HOOKS}; do cp -f pacman_hooks/$$i ${DESTDIR}${PREFIX}/share/libalpm/hooks; done
- cp -f dynotify ${DESTDIR}${PREFIX}/bin
uninstall:
for i in ${SH}; do rm -f ${DESTDIR}${PREFIX}/bin/$$i; done
for i in ${PACMAN_HOOKS}; do rm -f ${DESTDIR}${PREFIX}/share/libalpm/hooks/$$i; done
# RM is default to `rm -f`, see `info make`
# for i in ${SH}; do ${RM} ${DESTDIR}${PREFIX}/bin/$$i; done
- rm -f ${DESTDIR}${PREFIX}/bin/dynotify
-.PHONY: all clean install uninstall
+.PHONY: install uninstall