diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 31 |
1 files changed, 7 insertions, 24 deletions
@@ -1,23 +1,14 @@ -topoutdir ?= . -topsrcdir ?= . -include $(topsrcdir)/automake.head.mk - PACKAGE = parabolaweb-utils VERSION = 20160519 -DESTDIR = - #prefix = /usr/local prefix = /usr -exec_prefix = $(prefix) -bindir = $(exec_prefix)/bin #sbindir = $(exec_prefix)/sbin sbindir = $(bindir) #libexecdir = $(exec_prefix)/libexec libexecdir = $(exec_prefix)/lib #sysconfdir = $(prefix)/etc sysconfdir = /etc/conf.d -systemddir = $(prefix)/lib/systemd/system #uwsgidir = $(prefix)/etc/uwsgi uwsgidir = /etc/uwsgi @@ -27,13 +18,9 @@ pkgconffile = $(sysconfdir)/parabolaweb CFLAGS += -std=c99 -Wall -Wextra -Werror -Wno-unused-parameter CPPFLAGS += -DSCRIPT_LOCATION='"$(pkglibexecdir)/parabolaweb-changepassword.real"' -ifeq ($(wildcard .git),) -include .srcfiles.mk -else -.srcfiles.mk: FORCE - @echo am_src_files = $(shell git ls-files) | ./write-ifchanged $@ --include $(srcdir)/.srcfiles.mk -endif +topoutdir ?= . +topsrcdir ?= . +include $(topsrcdir)/build-aux/Makefile.head.mk targets = \ $(sbindir)/parabolaweb-changepassword \ @@ -43,18 +30,14 @@ targets = \ $(systemddir)/parabolaweb-reporead-inotify.service \ $(uwsgidir)/parabolaweb.ini -am_gen_files = .srcfiles.mk -am_out_files = depends.txt $(notdir $(targets)) parabolaweb.conf -am_sys_files = $(targets) $(pkgconffile) +files.out.all = depends.txt $(filter-out $(files.src.src),$(notdir $(targets))) parabolaweb.conf +files.sys.all = $(targets) $(pkgconffile) # Pattern rules %: %.in .var.sbindir .var.pkgconffile sed -e 's|@sbindir@|$(sbindir)|' -e 's|@pkgconffile@|$(pkgconffile)|' < $< > $@ -.var.%: FORCE - @printf '%s' '$($*)' | ./write-ifchanged $@ - $(DESTDIR)$(sbindir)/%: % install -Dm755 $< $@ @@ -79,6 +62,6 @@ $(DESTDIR)$(pkgconffile): parabolaweb.conf install -Dm644 $< $@ .DELETE_ON_ERROR: -.PHONY: FORCE +.SECONDARY: -include $(topsrcdir)/automake.tail.mk +include $(topsrcdir)/build-aux/Makefile.tail.mk |