build: On-demand rebuilding and add "devel-install" target
Don't always rebuild on "make" (in the phony "all" target), but introduce a real file target dist/index.js and its requisites. This gets rid of the "install-only" target, which is very non-standard and would not on an unbuilt tree anyway. Also add a "devel-install" target that does the usual symlinking of the built source tree into ~/.local/share/cockpit. Closes #17
This commit is contained in:
parent
931e1be3c3
commit
8e9cc58eef
2 changed files with 12 additions and 6 deletions
|
|
@ -16,9 +16,10 @@ Cockpit Starter Kit Example Module
|
|||
%setup -n cockpit-starter-kit
|
||||
|
||||
%build
|
||||
make
|
||||
|
||||
%install
|
||||
make install-only DESTDIR=%{buildroot}
|
||||
make install DESTDIR=%{buildroot}
|
||||
find %{buildroot} -type f >> files.list
|
||||
sed -i "s|%{buildroot}||" *.list
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue