Merge from template.
authorBrian Aker <brian@tangent.org>
Sun, 9 Feb 2014 12:19:48 +0000 (04:19 -0800)
committerBrian Aker <brian@tangent.org>
Sun, 9 Feb 2014 12:19:48 +0000 (04:19 -0800)
rpm/include.mk

index e69164599c41e25956af0d69bb270d09611dd615..bf9bd1a855c905ed319293d01dd0f1945f89c8ea 100644 (file)
@@ -1,9 +1,10 @@
 # vim:ft=automake
 
 RPM_BUILDDIR= ~/rpmbuild
+RPM_SOURCESDIR= $(RPM_BUILDDIR)/SOURCES
 
 RPM_BUILD_TARGET= @PACKAGE@-@VERSION@-@RPM_RELEASE@.@build_cpu@.rpm
-RPM_SOURCE= $(RPM_BUILDDIR)/SOURCES/$(DIST_ARCHIVES)
+RPM_SOURCE= $(RPM_SOURCESDIR)/$(DIST_ARCHIVES)
 
 RPMS=
 RPMS+= $(RPM_BUILD_TARGET)
@@ -24,8 +25,8 @@ $(RPM_BUILDDIR):
 $(DIST_ARCHIVES): $(DISTFILES)
        $(MAKE) $(AM_MAKEFLAGS) dist-gzip
 
-$(RPM_SOURCE): | $(RPM_BUILDDIR) $(DIST_ARCHIVES)
-       @cp $(DIST_ARCHIVES) $(RPM_SOURCE)
+$(RPM_SOURCE): $(DIST_ARCHIVES) $(RPM_BUILDDIR)
+       @cp $< $@
 
 $(RPM_BUILD_TARGET): $(RPM_SOURCE) support/@PACKAGE@.spec
        -@rm -f $(BUILD_RPMS) $(BUILD_SRPMS)