]> henry.ined.fr Git - .git/commitdiff
Summary: linuxrpm added
authorN. Brouard <brouard@ined.fr>
Wed, 16 Dec 2015 08:52:07 +0000 (08:52 +0000)
committerN. Brouard <brouard@ined.fr>
Wed, 16 Dec 2015 08:52:07 +0000 (08:52 +0000)
src/Makefile

index 305054d74633a5a01a105efd196630b4a0c6d0cd..1c243d9442ee52731de79f5c73e5628b020e44c6 100644 (file)
@@ -15,7 +15,8 @@ IMACHSETUPVERSION=icl
 #       Linux
 # make _linux=1 imachopt
 # make _linux=1 imach
-# cpack -D CPACK_RPM_PACKAGE_DEBUG=1 -D CPACK_RPM_SPEC_INSTALL_POST="/bin/true" -G RPM
+# make _linux=1 imachrpm
+# cd to build/gnulinux ; cmake ../..; cpack -D CPACK_RPM_PACKAGE_DEBUG=1 -D CPACK_RPM_SPEC_INSTALL_POST="/bin/true" -G RPM
 # make _linux32onosx=1 imachopt
 # make _linux64onosx=1 imachopt
 
@@ -481,6 +482,15 @@ imachopt.o : imach.c version.h
 imachUB : imach32 imach64
        lipo -create -arch i386 imach_32 -arch x86_64 imach_64 -output imach$(VERSION)
 
+imachrpm : imachopt.o 
+       pwd
+       (cd ../build && rm -r gnulinux && mkdir gnulinux && cd gnulinux ;\
+       pwd ;\
+       cmake ../..;\
+       cmake --build . ; \
+       echo $(OSTYPE);\
+       cpack -D CPACK_RPM_PACKAGE_DEBUG=1 -D CPACK_RPM_SPEC_INSTALL_POST="/bin/true" -G RPM;\
+       cp  imach$(VERSION)-*.rpm ../../src/Output/ ;)
 
 #imachdmg : imachopt.o create-dmg applet IMaChInfo.plist.in IMaChPkgInfo.in IMaCh.icns main.scpt.in IMaCh-ecrandemarrage.rsrc TXT.rtf
 #      $(CC) $(LFLAGSOPT) -o imach imachopt.o