Template for perl module with debian package


/ Published in: Makefile
Save to your folder(s)

This is the template for a basic project in Perl language with a minimal Debian package build.
I always use the I parameter with Perl for use the more updated version of the modules in the debug process.


Copy this code and paste it in your HTML
  1. # Variables
  2. PERL_BIN=/usr/bin/perl
  3. PERL=$(PERL_BIN) -Ilib
  4. DEBUILD=/usr/bin/debuild
  5.  
  6. # Targets
  7. Build: Build.PL
  8. $(PERL) Build.PL installdirs=vendor
  9.  
  10. build: Build
  11. $(PERL) Build
  12.  
  13. clean: Build
  14. $(PERL) Build distclean
  15.  
  16. test: build
  17. $(PERL) Build test
  18.  
  19. install: test
  20. $(PERL) Build install destdir=$(DESTDIR)
  21.  
  22. deb: debian/rules
  23. $(DEBUILD) -rfakeroot -uc -us -sa 2>&1 | tee debuild.log

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.