Updated with support for DESTDIR during install jenkins-beamb-65
authorAnders Henja <anders@henjab.se>
Sun, 14 Oct 2018 19:24:30 +0000 (21:24 +0200)
committerAnders Henja <anders@henjab.se>
Sun, 14 Oct 2018 19:24:30 +0000 (21:24 +0200)
bin/Makefile
data/Makefile
lib/Makefile
pybeamb/Makefile

index 38c38a4..282c75b 100644 (file)
@@ -26,8 +26,8 @@
 
 .PHONY=install
 install:
-       @mkdir -p ${prefix}/bin/
-       @cp -v -f beamb ${prefix}/bin/
+       @mkdir -p ${DESTDIR}${prefix}/bin/
+       @cp -v -f beamb ${DESTDIR}${prefix}/bin/
 
 .PHONY=clean
 clean:
index 0e85ff7..340ca5c 100644 (file)
@@ -35,8 +35,8 @@ gtopo30: gtopo30.tgz
  
 .PHONY=install
 install: gtopo30
-       @mkdir -p ${prefix}/share/beamb/data/gtopo30
-       @cp -f gtopo30/*.* ${prefix}/share/beamb/data/gtopo30/
+       @mkdir -p ${DESTDIR}${prefix}/share/beamb/data/gtopo30
+       @cp -f gtopo30/*.* ${DESTDIR}${prefix}/share/beamb/data/gtopo30/
                
 .PHONY=clean
 clean:
index 7eb5602..193ad31 100644 (file)
@@ -57,11 +57,11 @@ $(TARGET): $(DEPDIR) $(OBJECTS)
 
 .PHONY=install
 install:
-       @mkdir -p ${prefix}/include/
-       @mkdir -p ${prefix}/lib/
-       @mkdir -p ${BEAMB_CACHE_DIR}
-       @cp -v -f *.h ${prefix}/include/
-       @cp -v -f $(TARGET) ${prefix}/lib/
+       @mkdir -p ${DESTDIR}${prefix}/include/
+       @mkdir -p ${DESTDIR}${prefix}/lib/
+       @mkdir -p ${DESTDIR}${BEAMB_CACHE_DIR}
+       @cp -v -f *.h ${DESTDIR}${prefix}/include/
+       @cp -v -f $(TARGET) ${DESTDIR}${prefix}/lib/
 
 .PHONY=clean
 clean:
index a2d7256..8f389d2 100644 (file)
@@ -74,12 +74,13 @@ $(BBTOPOGRAPHY_TARGET): $(DEPDIR) $(BBTOPOGRAPHY_OBJECTS) ../lib/libbeamb.so
        
 .PHONY=install
 install:
-       @mkdir -p "${prefix}/share/beamb/pybeamb"
-       @cp -v -f $(BEAMBLOCKAGE_TARGET) "${prefix}/share/beamb/pybeamb/"
-       @cp -v -f $(BEAMBLOCKAGEMAP_TARGET) "${prefix}/share/beamb/pybeamb/"
-       @cp -v -f $(BBTOPOGRAPHY_TARGET) "${prefix}/share/beamb/pybeamb/"
-       @cp -v -f *.py "${prefix}/share/beamb/pybeamb/"
-       @-echo "$(prefix)/share/beamb/pybeamb" > "$(SITEPACK_PYTHON)/pybeamb.pth"
+       @mkdir -p "${DESTDIR}${prefix}/share/beamb/pybeamb"
+       @cp -v -f $(BEAMBLOCKAGE_TARGET) "${DESTDIR}${prefix}/share/beamb/pybeamb/"
+       @cp -v -f $(BEAMBLOCKAGEMAP_TARGET) "${DESTDIR}${prefix}/share/beamb/pybeamb/"
+       @cp -v -f $(BBTOPOGRAPHY_TARGET) "${DESTDIR}${prefix}/share/beamb/pybeamb/"
+       @cp -v -f *.py "${DESTDIR}${prefix}/share/beamb/pybeamb/"
+       @mkdir -p "${DESTDIR}${SITEPACK_PYTHON}"
+       @-echo "$(prefix)/share/beamb/pybeamb" > "${DESTDIR}$(SITEPACK_PYTHON)/pybeamb.pth"
 
 .PHONY=clean
 clean: