diff options
author | Juergen Daubert <jue@jue.li> | 2015-03-12 14:16:30 +0100 |
---|---|---|
committer | Juergen Daubert <jue@jue.li> | 2015-03-12 14:16:30 +0100 |
commit | 4bfdd964cd2eaa2d2159f22acd77d585ca48bddc (patch) | |
tree | 77ff3c1d3777087bce5bd8b307a254d085da3374 | |
parent | 0a7e06369719dbe340471cfd3e1fdf821992eba4 (diff) | |
download | prt-utils-4bfdd964cd2eaa2d2159f22acd77d585ca48bddc.tar.gz prt-utils-4bfdd964cd2eaa2d2159f22acd77d585ca48bddc.tar.xz |
Makefile: adjustments for new revdep, use install instead of cp/mkdir
-rw-r--r-- | Makefile | 33 |
1 files changed, 17 insertions, 16 deletions
@@ -3,8 +3,9 @@ VERSION = 0.9.8 TOOLS = prtcreate prtrej prtsweep prtcheck prtwash pkgexport pkgsize \ prtorphan prtcheckmissing oldfiles finddeps dllist \ - findredundantdeps pkg_installed revdep portspage pkgfoster \ - prtverify + findredundantdeps pkg_installed portspage pkgfoster \ + prtverify \ + revdep/revdep PREFIX = /usr MANDIR = $(PREFIX)/man @@ -17,53 +18,53 @@ all: install-man: if [ ! -d $(DESTDIR)$(MANDIR)/man1 ]; then \ - mkdir -p $(DESTDIR)$(MANDIR)/man1; \ + install -d $(DESTDIR)$(MANDIR)/man1; \ fi for manpage in $(TOOLS) prt-utils; do \ if [ -f $$manpage.1 ]; then \ - cp $$manpage.1 $(DESTDIR)$(MANDIR)/man1/; \ - chmod 644 $(DESTDIR)$(MANDIR)/man1/$$manpage.1; \ + install -m 644 $$manpage.1 $(DESTDIR)$(MANDIR)/man1/; \ fi; \ done install-bin: if [ ! -d $(DESTDIR)$(BINDIR) ]; then \ - mkdir -p $(DESTDIR)$(BINDIR); \ + install -d $(DESTDIR)$(BINDIR); \ fi for binary in $(TOOLS); do \ - cp $$binary $(DESTDIR)$(BINDIR)/; \ - chmod 755 $(DESTDIR)$(BINDIR)/$$binary; \ + install -m 755 $$binary $(DESTDIR)$(BINDIR)/; \ done install-conf: if [ ! -d $(DESTDIR)$(CONFDIR) ]; then \ - mkdir -p $(DESTDIR)$(CONFDIR); \ + install -d $(DESTDIR)$(CONFDIR); \ fi for tool in $(TOOLS); do \ if [ -f $$tool.conf ]; then \ - cp $$tool.conf $(DESTDIR)$(CONFDIR)/; \ - chmod 644 $(DESTDIR)$(CONFDIR)/$$tool.conf; \ + install -m 644 $$tool.conf $(DESTDIR)$(CONFDIR)/; \ fi; \ done install-lib: for tool in $(TOOLS); do \ if [ -d lib/$$tool ]; then \ - mkdir -p $(DESTDIR)$(LIBDIR)/$$tool; \ - cp lib/$$tool/* $(DESTDIR)$(LIBDIR)/$$tool; \ - chmod 644 $(DESTDIR)$(LIBDIR)/$$tool/*; \ + install -d $(DESTDIR)$(LIBDIR)/$$tool; \ + install -m 644 lib/$$tool/* $(DESTDIR)$(LIBDIR)/$$tool; \ fi; \ done prtverify: sed "s|@@LIBDIR@@|$(LIBDIR)|" prtverify.in $< > prtverify -install: prtverify install-man install-bin install-lib # install-conf +revdep/revdep: + @make -C revdep + +install: prtverify revdep/revdep install-man install-bin install-lib # install-conf clean: @rm -f prtverify + @make -C revdep clean -dist: clean +dist: clean @rm -rf ${NAME}-${VERSION} @mkdir .${NAME}-${VERSION} @cp -r * .${NAME}-${VERSION} |