Skip to content

Commit

Permalink
fix makefile install target problems
Browse files Browse the repository at this point in the history
  • Loading branch information
holmanb committed Nov 29, 2021
1 parent 168830f commit 7d69afe
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,13 @@ clean:
rm -rf -- $(DIST)

install: all
install -d -m644 $(DESTDIR)$(PREFIX)/{include,lib/pkgconfig,share/$(PROJ)}
install -d -m644 $(DESTDIR)$(PREFIX)/include
install -d -m644 $(DESTDIR)$(PREFIX)/lib/pkgconfig
install -d -m644 $(DESTDIR)$(PREFIX)/share/$(PROJ)
install -m755 -t $(DESTDIR)$(PREFIX)/lib $(DIST)/lib*
install -m644 -t $(DESTDIR)$(PREFIX)/share/$(PROJ) $(PROJ).{c,h}
install -m644 -t $(DESTDIR)$(PREFIX)/share/$(PROJ) $(PROJ).c $(PROJ).h
install -m644 $(PROJ).h $(DESTDIR)$(PREFIX)/include/$(PROJ).h
install -m644 $(DIST)/$(PROJ).pc $(DESTDIR)$(PREFIX)/lib/pkgconfig/$(PROJ).pc
install -m644 $(PROJ).pc $(DESTDIR)$(PREFIX)/lib/pkgconfig/$(PROJ).pc

uninstall:
rm -rf -- \
Expand Down

0 comments on commit 7d69afe

Please sign in to comment.