diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-06-24 10:26:39 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-06-24 10:26:39 -0400 |
commit | 0baf1c6fb8709add509ef4695048f4fcd4fd34bf (patch) | |
tree | 77bf07399a15238d7a0de0ff62a6e5f40d2f6c7a /Makefile | |
parent | 9651234b574078a0bb5b54a5f8c70d9e1b1a767a (diff) |
I should not try do do things late at nightv20140624.1
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 21 |
1 files changed, 11 insertions, 10 deletions
@@ -19,20 +19,21 @@ CFLAGS += -std=c99 -Wall -Wextra -Werror -Wno-unused-parameter CPPFLAGS += -DSCRIPT_LOCATION='"$(pkglibexecdir)/parabolaweb-changepassword.real"' targets = \ - $(DESTDIR)$(sbindir)/parabolaweb-changepassword \ - $(DESTDIR)$(sbindir)/parabolaweb-fcgi \ - $(DESTDIR)$(sbindir)/parabolaweb-reporead-inotify \ - $(DESTDIR)$(sbindir)/parabolaweb-update \ - $(DESTDIR)$(pkglibexecdir)/parabolaweb-changepassword.real \ - $(DESTDIR)$(systemddir)/parabolaweb.service \ - $(DESTDIR)$(systemddir)/parabolaweb-reporead-inotify.service + $(sbindir)/parabolaweb-changepassword \ + $(sbindir)/parabolaweb-fcgi \ + $(sbindir)/parabolaweb-reporead-inotify \ + $(sbindir)/parabolaweb-update \ + $(pkglibexecdir)/parabolaweb-changepassword.real \ + $(systemddir)/parabolaweb.service \ + $(systemddir)/parabolaweb-reporead-inotify.service all: PHONY depends.txt $(notdir $(targets)) parabolaweb.conf -install: PHONY $(targets) $(sysconffile) +install: PHONY $(addprefix $(DESTDIR),$(targets) $(pkgconffile)) uninstall: PHONY - $(RM) $(targets) $(sysconffile) + $(RM) $(addprefix $(DESTDIR),$(targets) $(pkgconffile)) + rmdir -p -- $(wildcard $(sort $(dir $(addprefix $(DESTDIR),$(targets) $(pkgconffile))))) 2>/dev/null || true clean: PHONY $(RM) $(notdir $(targets)) depends.txt @@ -59,7 +60,7 @@ depends.txt: list-depends depends_static.txt $(DESTDIR)$(sbindir)/parabolaweb-changepassword: parabolaweb-changepassword install -Dm6755 $< $@ -$(DESTDIR)(pkgconffile): parabolaweb.conf +$(DESTDIR)$(pkgconffile): parabolaweb.conf install -Dm644 $< $@ .DELETE_ON_ERROR: |