1include @builddir@/mk/defs.mk 2 3.SUFFIXES: .in 4 5.in: 6 sed -e 's|%prefix%|$(PREFIX)|g' $< > $@ 7 8pdailydir= $(sysconfdir)/periodic/daily 9psecuritydir= $(sysconfdir)/periodic/security 10pweeklydir= $(sysconfdir)/periodic/weekly 11bashcompdir= $(sysconfdir)/bash_completion.d 12zshcompdir= $(PREFIX)/share/zsh/site-functions 13 14PDAILY= periodic/411.pkg-backup \ 15 periodic/490.status-pkg-changes 16PSECURITY= periodic/410.pkg-audit \ 17 periodic/460.pkg-checksum 18PWEEKLY= periodic/400.status-pkg 19COMPLETION= completion/_pkg \ 20 completion/_pkg.bash 21 22all: $(PDAILY) $(PSECURITY) $(PWEEKLY) $(COMPLETION) 23 24clean: 25 rm -f $(PDAILY) $(PSECURITY) $(PWEEKLY) 26 27install: $(PDAILY) $(PSECURITY) $(PWEEKLY) $(COMPLETION) 28 install -d -m 755 $(DESTDIR)$(pdailydir) 29 install -d -m 755 $(DESTDIR)$(pweeklydir) 30 install -d -m 755 $(DESTDIR)$(psecuritydir) 31 install -d -m 755 $(DESTDIR)$(bashcompdir) 32 install -d -m 755 $(DESTDIR)$(zshcompdir) 33 for script in $(PDAILY); do \ 34 install -m 755 $$script $(DESTDIR)$(pdailydir)/ ; \ 35 done 36 for script in $(PSECURITY); do \ 37 install -m 755 $$script $(DESTDIR)$(psecuritydir)/ ; \ 38 done 39 for script in $(PWEEKLY); do \ 40 install -m 755 $$script $(DESTDIR)$(pweeklydir)/ ; \ 41 done 42 install -m 644 completion/_pkg.bash $(DESTDIR)$(bashcompdir)/ 43 install -m 644 completion/_pkg $(DESTDIR)$(zshcompdir)/ 44