Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've created a userscript( file) in src folder of webapps-application.So how can I compile it now?

share|improve this question
why do you want to compile it? it's enough to put it in /usr/share/unity-webapps/userscripts/SCRIPTNAME/, aside with it's manifest.json – Pisu Jan 9 '13 at 7:05

You need to create a Make file.

Here is the sample file

If you look at line number the 3 in file. All the users.js scripts that are placed under src directory will be picked.

You need to create the same structure showed in here and follow the below commands to build

sudo make install prefix=/usr


share|improve this answer
Yeah,I have done that already but it didn't work.The official tutorial says that we need to create a file like '' in src folder.But they never explained what to do with it.Any ideas? – Rajat Saxena Oct 26 '12 at 9:51
Can you share the official tutorial page? – devav2 Oct 26 '12 at 10:26

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.