Ticket 746: Create packaging support for RPM and DEB. Fixed DESTDIR jenkins-bRopo-54
authorAnders Henja <anders@henjab.se>
Thu, 31 May 2018 20:31:15 +0000 (22:31 +0200)
committerAnders Henja <anders@henjab.se>
Thu, 31 May 2018 20:31:15 +0000 (22:31 +0200)
bin/Makefile
config/Makefile
pyropo/Makefile
ropo/Makefile

index 7d0956b..0634333 100644 (file)
@@ -72,8 +72,8 @@ $(TARGET): $(DEPDIR) $(OBJECTS) ../ropo/libbropo.so
 
 .PHONY=install
 install:
-       @mkdir -p ${prefix}/bin/
-       @cp -v -f ropo ${prefix}/bin/
+       @mkdir -p ${DESTDIR}${prefix}/bin/
+       @cp -v -f ropo ${DESTDIR}${prefix}/bin/
 
 .PHONY=clean
 clean:
index d235d81..b43a504 100644 (file)
@@ -33,5 +33,5 @@ clean:
 
 .PHONY: install
 install:
-       @mkdir -p ${prefix}/share/bropo/config
-       @cp -v -f *.xml ${prefix}/share/bropo/config
+       @mkdir -p ${DESTDIR}${prefix}/share/bropo/config
+       @cp -v -f *.xml ${DESTDIR}${prefix}/share/bropo/config
index ffb414d..475520f 100644 (file)
@@ -69,11 +69,11 @@ $(ROPO_TARGET): $(DEPDIR) $(ROPO_OBJECTS) ../ropo/libbropo.so
 
 .PHONY=install
 install:
-       @mkdir -p ${prefix}/share/bropo/pyropo
-       @cp -v -f $(FMIIMAGE_TARGET) ${prefix}/share/bropo/pyropo
-       @cp -v -f $(ROPO_TARGET) ${prefix}/share/bropo/pyropo
-       @cp -v -f *.py ${prefix}/share/bropo/pyropo
-       @-echo "$(prefix)/share/bropo/pyropo" > "$(SITEPACK_PYTHON)/pyropo.pth"
+       @mkdir -p ${DESTDIR}${prefix}/share/bropo/pyropo
+       @cp -v -f $(FMIIMAGE_TARGET) ${DESTDIR}${prefix}/share/bropo/pyropo
+       @cp -v -f $(ROPO_TARGET) ${DESTDIR}${prefix}/share/bropo/pyropo
+       @cp -v -f *.py ${DESTDIR}${prefix}/share/bropo/pyropo
+       @-echo "$(prefix)/share/bropo/pyropo" > "${DESTDIR}$(SITEPACK_PYTHON)/pyropo.pth"
 
 .PHONY=clean
 clean:
index 43217b1..c16de18 100644 (file)
@@ -60,10 +60,10 @@ $(TARGET): $(DEPDIR) $(OBJECTS)
 
 .PHONY=install
 install:
-       @mkdir -p ${prefix}/include/
-       @mkdir -p ${prefix}/lib/
-       @cp -v -f *.h ${prefix}/include/
-       @cp -v -f $(TARGET) ${prefix}/lib/
+       @mkdir -p ${DESTDIR}${prefix}/include/
+       @mkdir -p ${DESTDIR}${prefix}/lib/
+       @cp -v -f *.h ${DESTDIR}${prefix}/include/
+       @cp -v -f ${DESTDIR}$(TARGET) ${prefix}/lib/
 
 .PHONY=clean
 clean: