new rule to install into /private/tmp

32 views
Skip to first unread message

Andrew Marks

unread,
Dec 3, 2015, 11:59:34 AM12/3/15
to The Luggage
Hi i am trying to add a new rule to install into /private/tmp

I thought adding this to the luggage make file would work but fails.

l_private_tmp: l_private
@sudo mkdir -p ${WORK_D}/private/tmp
@sudo chown -R root:wheel ${WORK_D}/private/tmp
@sudo chmod -R 755 ${WORK_D}/private/tmp

this is my makefile 

USE_PKGBUILD=1

include /usr/local/share/luggage/luggage.make

TITLE= VYS-CERTS

REVERSE_DOMAIN=net.vys.certs

PAYLOAD=\

        pack-DigiCertCA.crt \

        pack-script-postinstall


# Variable Declarations:

PACKAGE_VERSION=1.0.0

                

pack-DigiCertCA.crt: l_private_tmp             

        @sudo ${CP} ./DigiCertCA.crt ${WORK_D}/private/tmp/DigiCertCA.crt

        @sudo chown root:wheel ${WORK_D}/private/tmp/DigiCertCA.crt

        @sudo chmod 755 ${WORK_D}/private/tmp/DigiCertCA.crt


I get the following error 


make -f Makefile -e pack-DigiCertCA.crt pack-script-postinstall 

make[1]: *** No rule to make target `l_private_tmp', needed by `pack-DigiCertCA.crt'.  Stop.

make: *** [payload] Error 2

crasher:trust cer root# 



Thanks




Tim Sutton

unread,
Dec 3, 2015, 12:56:11 PM12/3/15
to the-l...@googlegroups.com
Are you using tabs in your rules?

I just reproduced your Makefile and it got as far as trying to copy the DigiCertCA.crt file, so I think it was able to process the l_private_tmp rule:


--
You received this message because you are subscribed to the Google Groups "The Luggage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to the-luggage...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Geordie Korper

unread,
Dec 3, 2015, 12:57:48 PM12/3/15
to the-l...@googlegroups.com
It is hard to tell from email but are you using tabs and not spaces in your makefile? It seems right in what you copied from luggage.make but not right in what came from your makefile. 

also you should probably remove the space before VYS-CERTS

And it’s just a convenience but I suggest including a local makefile that then includes luggage.make so that you don’t have to define things like organization and reverse domain in every makefile.
luggage-local.make:
include /usr/local/share/luggage/luggage.make
REVERSE_DOMAIN=net.vys.certs

--  
Geordie Korper

Reply all
Reply to author
Forward
0 new messages