Skip to content

Commit

Permalink
build: Add a Makefile
Browse files Browse the repository at this point in the history
Same rationale as coreos/ignition-dracut#106

See https://github.com/cgwalters/build-api

With this for example, we can just have the RHEL spec file do
`make install DESTDIR=$RPM_BUILD_ROOT` just like everything else;
helping to ensure that as much logic as possible remains upstream.
  • Loading branch information
cgwalters committed Apr 22, 2020
1 parent 19d74d9 commit cb2bffc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
all:
@echo "(Nothing to do)"

install:
install -D -t $(DESTDIR)/usr/libexec -m 0755 coreos-installer
for x in dracut/*; do install -D -t $(DESTDIR)/usr/lib/dracut/modules.d/$$(basename $$x) $$x/*; done

0 comments on commit cb2bffc

Please sign in to comment.