Created
November 10, 2022 04:45
-
-
Save s1037989/2b51a572a41025dcceae6090a3ea137b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
requires 'Mojolicious', '== 9.20'; | |
requires 'Mojo::Sendgrid'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bindir = /usr/bin | |
sharedir = /usr/share/my_app | |
all: | |
cpanm -L local --installdeps . | |
mkdir -p blib | |
cp -a script blib | |
cp -a lib blib | |
cp -a local/bin blib | |
cp -a local/lib/perl5/* blib/lib | |
test: | |
PATH=blib/bin$${PATH:+:$$PATH} PERL5LIB=blib/lib$${PERL5LIB:+:$$PERL5LIB} prove t/ | |
install: | |
mkdir -p $(DESTDIR)$(sharedir) $(DESTDIR)$(bindir) | |
cp -a blib/script $(DESTDIR)$(sharedir) | |
cp -a blib/bin $(DESTDIR)$(sharedir) | |
cp -a blib/lib $(DESTDIR)$(sharedir) | |
ln -s $(DESTDIR)$(sharedir)/script/my_app $(DESTDIR)$(bindir) | |
chmod +x $(DESTDIR)$(bindir)/my_app | |
uninstall: | |
rm -rf $(DESTDIR)$(sharedir) | |
clean: | |
rm -rf blib |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment