Skip to content

plug-ins to your Makefile not to re-invent the wheel. For example how to package your project to RPM

License

Notifications You must be signed in to change notification settings

drujd/make-plugins

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to incorporate it

  1. Add these lines to your Makefile so you can use this plugin
mkplugin:
        curl https://raw.githubusercontent.com/packagemgmt/make-plugins/master/make-rpm.mk > make-rpm.mk

-include make-rpm.mk
  1. Then call 'make mkplugin' to download it.
  2. (if you like it) git add mkplugin.mk && git commit mkplugin.mk && git push

Some examples what it can do:

Create rpm from content in current working directory

make rpm

Override version mentioned in specfile - good for continuous integration

make rpm VERSION=1.2.3

Create RPMs for all os versions (el6, el7)

make rpms

Upload to artifact repository. This will also build the rpms before. You will need https://pypi.python.org/pypi/repositorytools >=4.2.1 to make this work

REPOSITORY_URL=https://repository.eng.mycompany.com
REPOSITORY_USER=jdoe
REPOSITORY_PASSWORD=mysecretpassword

make uploadrpms GROUP=com.mycompany

About

plug-ins to your Makefile not to re-invent the wheel. For example how to package your project to RPM

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Makefile 86.3%
  • Shell 13.7%