Makefile: Run npm install when necessary

Also mark phony targets as such.
This commit is contained in:
Martin Pitt 2018-03-08 15:23:36 +01:00
parent ea2149157f
commit 23031d8b2f
2 changed files with 8 additions and 4 deletions

View file

@ -4,9 +4,8 @@ Scaffolding for a [Cockpit](http://www.cockpit-project.org) module.
# Building
Run `npm install` to install dependencies and `make` to build the package. It
builds into the `dist` directory. Link or copy that to a location were
`cockpit-bridge` looks for packages.
Run `make` to build the package. It builds into the `dist` directory. Link or
copy that to a location were `cockpit-bridge` looks for packages.
`make install` compiles and installs the package in `/usr/share/cockpit/`. The
convenience targets `srpm` and `rpm` build the source and binary rpms,