Commit 8b0ee76b authored by Vitaly Lipatov's avatar Vitaly Lipatov

add DESTDIR in makefile install

parent e9997542
pkgdatadir=$(datadir)/eterbuild
all: QuickHelp.txt QuickHelp.koi8-r.txt
$(MAKE) -C po
......@@ -10,16 +12,16 @@ QuickHelp.txt:
install:
$(MAKE) -C po install
mkdir -p $(bindir) $(sysconfdir)/eterbuild/apt $(sysconfdir)/rpm
mkdir -p $(datadir)/eterbuild/functions/
mkdir -p $(datadir)/eterbuild/pkgrepl $(datadir)/eterbuild/grprepl/
install -m 755 bin/* $(bindir)
install -m 644 etc/apt/* $(sysconfdir)/eterbuild/apt/
install -m 644 etc/rpm/* $(sysconfdir)/rpm/
install -m 644 etc/config $(sysconfdir)/eterbuild/
install -m 644 etc/repos $(sysconfdir)/eterbuild/
#install -m 644 apt/apt.conf.* apt/sources.list.* %buildroot/%_sysconfdir/apt/
install -m 644 share/eterbuild/pkgrepl/pkgrepl.* $(datadir)/eterbuild/pkgrepl/
install -m 644 share/eterbuild/grprepl/grprepl.* $(datadir)/eterbuild/grprepl/
install -m 644 share/eterbuild/eterbuild $(datadir)/eterbuild/
install -m 644 share/eterbuild/functions/* $(datadir)/eterbuild/functions/
mkdir -p $(DESTDIR)$(bindir)
mkdir -p $(DESTDIR)$(sysconfdir)/eterbuild/apt $(DESTDIR)$(sysconfdir)/rpm
mkdir -p $(DESTDIR)$(pkgdatadir)/functions/
mkdir -p $(DESTDIR)$(pkgdatadir)/pkgrepl $(DESTDIR)$(pkgdatadir)/grprepl/
install -m 755 bin/* $(DESTDIR)$(bindir)
install -m 644 etc/apt/* $(DESTDIR)$(sysconfdir)/eterbuild/apt/
install -m 644 etc/rpm/* $(DESTDIR)$(sysconfdir)/rpm/
install -m 644 etc/config $(DESTDIR)$(sysconfdir)/eterbuild/
install -m 644 etc/repos $(DESTDIR)$(sysconfdir)/eterbuild/
install -m 644 share/eterbuild/pkgrepl/pkgrepl.* $(DESTDIR)$(pkgdatadir)/pkgrepl/
install -m 644 share/eterbuild/grprepl/grprepl.* $(DESTDIR)$(pkgdatadir)/grprepl/
install -m 644 share/eterbuild/eterbuild $(DESTDIR)$(pkgdatadir)/
install -m 644 share/eterbuild/functions/* $(DESTDIR)$(pkgdatadir)/functions/
......@@ -42,7 +42,7 @@ RECOMMENDED packages: gcc-c++ perl-libwww ccache elinks mutt hasher curl
%make
%install
%makeinstall
%makeinstall_std
%find_lang %name
%files -f %name.lang
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment