[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

rpm make problem



HI,

I have questions below:

	I put the source code into SOURCES directory,and run the command below:
	rpm -ba test.spec
	It bulids two rpm files:test.x.x.-i386.rpm and test.x.-source.rpm. At the same time, I find all *.pl files have been copied to the destination.
	But install test.x.x.-i386.rpm on another machine, I find DEST destination diretory has not been created and *.pl files have not been copied to the destination.
	What is the problem?
	Thanks.

	
Attach:
#####################################################
File1:makefile
____________________
# Install destination
DEST = /usr/lib/test

all: copy

copy: destination

destination:
        mkdir -p $(DEST)/perl

clean:
        rm -rf $(DEST)
install:
        cp *.pl $(DEST)/perl
______________________
File2: test.spec
Summary: Test rpm
Name: test
Version: 0.0.1
Release: 2
Source: %{name}-%{version}.tar.gz
BuildRoot: %{_builddir}/%{name}-root
License: GPL
Group: Applications/System
%description
The GPL program reformats perl code to any of a variety of
formatting standards is legal.
%prep
%setup -q
%build
make
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
%clean
rm -rf $RPM_BUILD_ROOT
%files
%doc *.pl
---------------------------
##########################################################


Liu Guanghong
              liugh@langchaobj.com.cn
              2003-09-18




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]